inotify: add log config option redirect inotify server output to a file
authorNicolas Dumazet <nicdumz.commits@gmail.com>
Sat, 13 Jun 2009 18:14:50 +0200
changeset 8790 72af80052bd9
parent 8789 e0ed17984a48
child 8791 23730a475363
inotify: add log config option redirect inotify server output to a file
hgext/inotify/__init__.py
--- a/hgext/inotify/__init__.py	Mon May 25 18:14:32 2009 +0900
+++ b/hgext/inotify/__init__.py	Sat Jun 13 18:14:50 2009 +0200
@@ -37,7 +37,9 @@
                 self.master.shutdown()
 
     service = service()
-    cmdutil.service(opts, initfn=service.init, runfn=service.run)
+    logfile = ui.config('inotify', 'log')
+    cmdutil.service(opts, initfn=service.init, runfn=service.run,
+                    logfile=logfile)
 
 def debuginotify(ui, repo, **opts):
     '''debugging information for inotify extension