git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tweak logging config : *do not* disable other loggers
[plcapi.git]
/
PLC
/
Logger.py
diff --git
a/PLC/Logger.py
b/PLC/Logger.py
index
ca85ac9
..
b1268ae
100644
(file)
--- a/
PLC/Logger.py
+++ b/
PLC/Logger.py
@@
-6,7
+6,8
@@
import logging.config
plcapi_logging_config = {
'version' : 1,
plcapi_logging_config = {
'version' : 1,
- 'disable_existing_loggers' : True,
+# we may be imported by something else, like sfa, so do not do that:
+# 'disable_existing_loggers' : True,
'formatters': {
'standard': {
'format': '%(asctime)s %(levelname)s %(filename)s:%(lineno)d %(message)s',
'formatters': {
'standard': {
'format': '%(asctime)s %(levelname)s %(filename)s:%(lineno)d %(message)s',