-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Add checkhost() to allow warn on sub-optimal configs #2340
base: master
Are you sure you want to change the base?
Conversation
synapse/lib/cell.py
Outdated
@@ -2168,6 +2168,9 @@ async def execmain(cls, argv, outp=None): | |||
if outp is None: | |||
outp = s_output.stdout | |||
|
|||
if not int(os.getenv('CELL_CHECKHOST', '1')): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should this env var really be named?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- we have a envbool helper in synapse.common
- SYN_CHECKHOST ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is better done inside of initFromArgv
to allow for picking up on structured logging
Codecov Report
@@ Coverage Diff @@
## master #2340 +/- ##
==========================================
- Coverage 97.17% 97.01% -0.17%
==========================================
Files 194 194
Lines 36268 36293 +25
==========================================
- Hits 35243 35209 -34
- Misses 1025 1084 +59
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
No description provided.