Commits

Yuya Nishihara committed 1c59b0b

hgext: add option to write server log to file

It reuses -E/--errorlog option of "hg serve" command.

  • Participants
  • Parent commits 685a1ca

Comments (0)

Files changed (1)

File hgext/chgsupport.py

         raise util.Abort(_('no socket path specified with --port'))
 
     svc = service(ui, sockpath)
-    cmdutil.service(opts, initfn=svc.init, runfn=svc.run)
+    cmdutil.service(opts, initfn=svc.init, runfn=svc.run,
+                    logfile=opts['errorlog'])
 
 def uisetup(ui):
     extensions.wrapcommand(commands.table, 'serve', _serve)