forked from M-Labs/artiq
1
0
Fork 0

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:
Drew 2021-02-09 16:42:39 -05:00 committed by Sébastien Bourdeauducq
parent 461199b903
commit 48a1c305c1
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ def setup_diagnostics(experiment_file, repository_path):
message = message.replace(repository_path, "<repository>")
if diagnostic.level == "warning":
logging.warn(message)
logging.warning(message)
else:
logging.error(message)