[Mapbender-commits] r1444 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Jun 8 10:30:04 EDT 2007
Author: christoph
Date: 2007-06-08 10:30:04 -0400 (Fri, 08 Jun 2007)
New Revision: 1444
Modified:
trunk/mapbender/http/javascripts/map.js
Log:
error logging:
console logging is now corresponding to the levels
console.warn
console.error
console.log
previously, all logs were console.log
Modified: trunk/mapbender/http/javascripts/map.js
===================================================================
--- trunk/mapbender/http/javascripts/map.js 2007-06-06 11:41:04 UTC (rev 1443)
+++ trunk/mapbender/http/javascripts/map.js 2007-06-08 14:30:04 UTC (rev 1444)
@@ -1258,7 +1258,15 @@
alert(message);
}
else if (log_js == "console") {
- console.log("%s", message);
+ if (level == "warning") {
+ console.warn("%s", message);
+ }
+ else if (level == "error") {
+ console.error("%s", message);
+ }
+ else {
+ console.log("%s", message);
+ }
}
}
};
More information about the Mapbender_commits
mailing list