| |
@@ -20,7 +20,7 @@
|
| |
and the regular python plugins.
|
| |
"""
|
| |
|
| |
- import logging # pylint: disable=W0611
|
| |
+ import logging
|
| |
import os
|
| |
import os.path
|
| |
import re
|
| |
@@ -473,8 +473,7 @@
|
| |
for line in f.readlines():
|
| |
try:
|
| |
tag, msg = line.split(":")
|
| |
- # pylint: disable=eval-used
|
| |
- level = eval("logging." + tag.upper())
|
| |
+ level = getattr(logging, tag.upper())
|
| |
except (ValueError, AttributeError):
|
| |
self.log.error("Malformed plugin log: " + line)
|
| |
self.log.log(level, msg)
|
| |
This is not tested, I'm doing it on a train. However it should work and it is certainly a proper way to do it, something I cannot say about the current way.
😱😱😱