mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 03:44:52 -04:00
Use yaml safe_load
This commit is contained in:
parent
01e6b405be
commit
3677548a82
7 changed files with 11 additions and 11 deletions
|
@ -195,7 +195,7 @@ def setup_logging(config, use_worker_options=False):
|
|||
else:
|
||||
def load_log_config():
|
||||
with open(log_config, 'r') as f:
|
||||
logging.config.dictConfig(yaml.load(f))
|
||||
logging.config.dictConfig(yaml.safe_load(f))
|
||||
|
||||
def sighup(*args):
|
||||
# it might be better to use a file watcher or something for this.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue