[svn] commit: r1677 - /trunk/src/bin/xfrin/xfrin.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Apr 6 11:36:02 UTC 2010


Author: zhanglikun
Date: Tue Apr  6 11:36:02 2010
New Revision: 1677

Log:
Fix a minor code error brought by reversion 1674.(function log_info() is used without definition.)

Modified:
    trunk/src/bin/xfrin/xfrin.py.in

Modified: trunk/src/bin/xfrin/xfrin.py.in
==============================================================================
--- trunk/src/bin/xfrin/xfrin.py.in (original)
+++ trunk/src/bin/xfrin/xfrin.py.in Tue Apr  6 11:36:02 2010
@@ -267,9 +267,10 @@
         pass
 
     def log_msg(self, msg):
-        sys.stdout.write('[b10-xfrin] ')
-        sys.stdout.write(str(msg))
-        sys.stdout.write('\n')
+        if self._verbose:
+            sys.stdout.write('[b10-xfrin] ')
+            sys.stdout.write(str(msg))
+            sys.stdout.write('\n')
 
 
 def process_xfrin(xfrin_recorder, zone_name, db_file, 
@@ -349,7 +350,6 @@
     def command_handler(self, command, args):
         answer = create_answer(0)
         cmd = command
-        log_info('commaond handler received: ' + cmd)
         try:
             if cmd == 'print_message':
                 print(args)




More information about the bind10-changes mailing list