Permalink
Browse files

* python/mushin/common/tcommand.py:

	  Don't chain up for debug/warning, should fix wrong line
	  numbers in log output.  info() was right, and didn't get
	  chained here.
  • Loading branch information...
1 parent 9a12ca7 commit 045eda2a6c2d9c4da901f9b81e549eb6ff85b1a3 Thomas Vander Stichele committed Sep 11, 2012
Showing with 21 additions and 8 deletions.
  1. +7 −0 ChangeLog
  2. +14 −8 python/mushin/common/tcommand.py
View
@@ -1,3 +1,10 @@
+2012-09-11 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * python/mushin/common/tcommand.py:
+ Don't chain up for debug/warning, should fix wrong line
+ numbers in log output. info() was right, and didn't get
+ chained here.
+
2012-09-05 Thomas Vander Stichele <thomas at apestaart dot org>
* python/mushin/command/replicate.py:
@@ -29,14 +29,20 @@
from . import logcommand
class TwistedCommand(tcommand.TwistedCommand, logcommand.LogCommand):
- def debug(self, format, *args):
- logcommand.LogCommand.debug(self, format, *args)
- def warning(self, format, *args):
- logcommand.LogCommand.warning(self, format, *args)
+ pass
+# FIXME: looks like we don't need to chain up to make this work
+# FIXME: if we do need to chain up again, add info, and make sure we
+# adjust the logging depth since this chaining adds one level
+
+# def debug(self, format, *args):
+# logcommand.LogCommand.debug(self, format, *args)
+# def warning(self, format, *args):
+# logcommand.LogCommand.warning(self, format, *args)
class LogReactorCommand(tcommand.ReactorCommand, logcommand.LogCommand):
- def debug(self, format, *args):
- logcommand.LogCommand.debug(self, format, *args)
- def warning(self, format, *args):
- logcommand.LogCommand.warning(self, format, *args)
+ pass
+# def debug(self, format, *args):
+# logcommand.LogCommand.debug(self, format, *args)
+# def warning(self, format, *args):
+# logcommand.LogCommand.warning(self, format, *args)

0 comments on commit 045eda2

Please sign in to comment.