-
Notifications
You must be signed in to change notification settings - Fork 28
Switch from twisted logging back to python logging module #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I don't see any info logs with this change :/ Before: After: |
|
Interesting. loglevel=INFO in your "after" logs? This is when I set loglevel=WARN This is when I set loglevel=INFO |
|
Got it! WARN is default. |
server/recceiver/cfstore.py
Outdated
| continue | ||
| pvInfoByName[info["pvName"]] = info | ||
| _log.debug("Add record: {rid}: {info}", rid=rid, info=info) | ||
| _log.debug("Add record: {rid}: {info}".warning(rid=rid, info=info)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be .format not .warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, great catch! Fixed
properly escape curly brace in log message Fix typo for string format call
|



This addresses #96
I've tried to get twisted logging to use the conf file loglevel but it hasn't been successful. These attempts mostly revolved around adding this logic to application.py
It works fine for some log messages but certain log messages like
_log.debug('announce to {s}'.format(s=A))show up in the logs no matter what. So I suggest we revert back to the python logging module unless someone else can figure out the twisted logging since IMO this issue is a blocker to creating a new release.