]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Replace the native dump() function with a wrapper function that takes an optional...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 28 Jan 2011 19:38:57 +0000 (19:38 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 28 Jan 2011 19:38:57 +0000 (19:38 +0000)
commit9b2be444a78bbca0f6aa42b991a39275e0601673
tree1e1a1a46df610bf25499586d6e99eb571af2ee6c
parent6ba9ea789f6f506e6c2532ebbe2e5db543b5871e
Replace the native dump() function with a wrapper function that takes an optional 2nd parameter for log level (defaults to debug)
Log level: 0 None, 1 Error, 2 Warning, 3 Info, 4 debug
A global _dump_level variable gets consulted when the function is used.  The default is 2, Warning.
So by default, until we start changing things, this will suppress most of the existing dump statements.  Some are slipping through the cracks based on when the function replacement happens, but I'm happy with it.  We also prepend the dump msg with a label for the log level.

_dump_level could be locally customized with server/skin/custom.js

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19323 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul
Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_offline.xul
Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul