mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-16 13:01:04 +02:00
Allow enable sync to be configured with envvar (#413)
This commit is contained in:
parent
12a8ddc88f
commit
8b7ec2ecf6
1 changed files with 2 additions and 1 deletions
|
|
@ -197,7 +197,8 @@ class Config:
|
|||
return self.parser.get("squeaknode", "sqk_dir", fallback=DEFAULT_SQK_DIR_PATH)
|
||||
|
||||
def _get_squeaknode_enable_sync(self):
|
||||
return self.parser.getboolean("squeaknode", "enable_sync", fallback=False)
|
||||
return environ.get('SQUEAKNODE_ENABLE_SYNC') \
|
||||
or self.parser.getboolean("squeaknode", "enable_sync", fallback=False)
|
||||
|
||||
def _get_squeaknode_log_level(self):
|
||||
return environ.get('LOG_LEVEL') \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue