Module: check_mk
Branch: master
Commit: ce28d8b1134fd410ec3294835abb27ca96650f70
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ce28d8b1134fd4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jul 27 18:40:10 2011 +0200
Add debug code for Multisite
---
web/htdocs/config.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/web/htdocs/config.py b/web/htdocs/config.py
index b65111f..e9a2c83 100644
--- a/web/htdocs/config.py
+++ b/web/htdocs/config.py
@@ -24,6 +24,16 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
+# The following debug code can be used to tackle a mod_python
+# problem when using the local hierarchy for plugins that refer
+# to the config module.
+# import time, os
+# fn = "/tmp/config.load.%d" % os.getpid()
+# if os.path.exists(fn):
+# raise Exception("Mist: config zweimal geladen!!")
+#
+# file(fn, "a").write("[%d] Geladen: %s\n" % (os.getpid(),
time.time()))
+
import os, pprint, glob
from lib import *
import defaults