mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 02:33:51 +01:00
Add a log context to the daemonized pusher
This commit is contained in:
parent
6df5a6a833
commit
b80b93ea0f
1 changed files with 6 additions and 1 deletions
|
@ -296,10 +296,15 @@ if __name__ == '__main__':
|
||||||
ps = setup(sys.argv[1:])
|
ps = setup(sys.argv[1:])
|
||||||
|
|
||||||
if ps.config.daemonize:
|
if ps.config.daemonize:
|
||||||
|
def run():
|
||||||
|
with LoggingContext("run"):
|
||||||
|
change_resource_limit(ps.config.soft_file_limit)
|
||||||
|
reactor.run()
|
||||||
|
|
||||||
daemon = Daemonize(
|
daemon = Daemonize(
|
||||||
app="synapse-pusher",
|
app="synapse-pusher",
|
||||||
pid=ps.config.pid_file,
|
pid=ps.config.pid_file,
|
||||||
action=reactor.run,
|
action=run,
|
||||||
auto_close_fds=False,
|
auto_close_fds=False,
|
||||||
verbose=True,
|
verbose=True,
|
||||||
logger=logger,
|
logger=logger,
|
||||||
|
|
Loading…
Reference in a new issue