Skip to content
Snippets Groups Projects
Commit b80b93ea authored by Mark Haines's avatar Mark Haines
Browse files

Add a log context to the daemonized pusher

parent 6df5a6a8
No related branches found
No related tags found
No related merge requests found
......@@ -296,10 +296,15 @@ if __name__ == '__main__':
ps = setup(sys.argv[1:])
if ps.config.daemonize:
def run():
with LoggingContext("run"):
change_resource_limit(ps.config.soft_file_limit)
reactor.run()
daemon = Daemonize(
app="synapse-pusher",
pid=ps.config.pid_file,
action=reactor.run,
action=run,
auto_close_fds=False,
verbose=True,
logger=logger,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment