forked from M-Labs/artiq
master: fix DeprecationWarning on logger.warn
Resolves error message shown. The following error message is shown when worker_impl.py:199 is run: ``` WARNING:worker(RID,EXPERIMENT):py.warnings:/nix/store/77sw4p03cb7rdayx86agi4yqxh5wq46b-python3.7-artiq-5.7141.1b68906/lib/python3.7/site-packages/artiq/master/worker_impl.py:199: DeprecationWarning: The 'warn' function is deprecated, use 'warning' instead logging.warn(message) ```
This commit is contained in:
parent
461199b903
commit
48a1c305c1
|
@ -196,7 +196,7 @@ def setup_diagnostics(experiment_file, repository_path):
|
||||||
message = message.replace(repository_path, "<repository>")
|
message = message.replace(repository_path, "<repository>")
|
||||||
|
|
||||||
if diagnostic.level == "warning":
|
if diagnostic.level == "warning":
|
||||||
logging.warn(message)
|
logging.warning(message)
|
||||||
else:
|
else:
|
||||||
logging.error(message)
|
logging.error(message)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue