Skip to contentSkip to conversation

conga/luci/site/luci/Extensions LuciSyslog.py ...

Cluster-devel [email protected] 1 participant 1 message Oct 20, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2006-10-20 20:00:30

Modified files:
luci/site/luci/Extensions: LuciSyslog.py conga_constants.py
ricci_communicator.py

Log message:
more debugging output

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciSyslog.py.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_constants.py.diff?cvsroot=cluster&r1=1.20&r2=1.21
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_communicator.py.diff?cvsroot=cluster&r1=1.12&r2=1.13

luci/site/luci/Extensions/LuciSyslog.py +8 -0
@@ -44,6 +44,14 @@
 		except:
 			raise LuciSyslogError, 'syslog private call failed'
 
+	def debug_verbose(self, msg):
+		if not LUCI_DEBUG_MODE or LUCI_DEBUG_VERBOSITY < 2 or not self.__init:
+			return
+		try:
+			syslog(LOG_DEBUG, msg)
+		except:
+			raise LuciSyslogError, 'syslog debug calle failed'
+
 	def debug(self, msg):
 		if not LUCI_DEBUG_MODE or not self.__init:
 			return
luci/site/luci/Extensions/conga_constants.py +1 -0
@@ -115,3 +115,4 @@
 PLONE_ROOT='luci'
 
 LUCI_DEBUG_MODE = 1
+LUCI_DEBUG_VERBOSITY = 2
luci/site/luci/Extensions/ricci_communicator.py +70 -3

181 lines not on this page · raw message