From 9b2be444a78bbca0f6aa42b991a39275e0601673 Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 28 Jan 2011 19:38:57 +0000 Subject: [PATCH] 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 --- .../chrome/content/OpenILS/util_overlay_chrome.xul | 25 +++++++++++++++++++++- .../content/OpenILS/util_overlay_offline.xul | 25 +++++++++++++++++++++- .../staff_client/server/OpenILS/util_overlay.xul | 25 +++++++++++++++++++++- 3 files changed, 72 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul b/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul index d70a2abc7..413a18a4b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/util_overlay_chrome.xul @@ -2,8 +2,31 @@ + - + + + - +