This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
stderr goes to /dev/null when we run with --daemonize
#1539
Labels
A-Logging
Synapse's logs (structured or otherwise). Not metrics.
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Z-Help-Wanted
We know exactly how to fix this issue, and would be grateful for any contribution
Comments
This was referenced Jul 2, 2018
--daemonise
--daemonise
--daemonize
The problem here is not so much that synctl uses I think the ideal here is:
This then allows the following configurations:
I see one particular fly in this ointment:
[1] redirecting the real stdout and stderr looks like: import os
original_stdout = os.dup(1)
with open('file', 'w+') as f:
os.dup2(f.fileno(), 2)
os.dup2(f.fileno(), 1) |
This was referenced Oct 4, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A-Logging
Synapse's logs (structured or otherwise). Not metrics.
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Major
Major functionality / product severely impaired, no satisfactory workaround.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Z-Help-Wanted
We know exactly how to fix this issue, and would be grateful for any contribution
Submitted by @matthew:matrix.org
just wasted 30 minutes because an uncaught exception sent to stderr was being swallowed by synctl >:(
(Imported from https://matrix.org/jira/browse/SYN-686)
The text was updated successfully, but these errors were encountered: