-
Notifications
You must be signed in to change notification settings - Fork 52
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
Fix subprocess logging during database creation #726
base: main
Are you sure you want to change the base?
Conversation
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.
Minor typos. Otherwise looks reasonable.
tiled/_tests/test_catalog.py
Outdated
# and fails if an error logg happens. This could catch anything that is | ||
# and error during the app build. |
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.
# and fails if an error logg happens. This could catch anything that is | |
# and error during the app build. | |
# and fails if an error log happens. This could catch anything that is | |
# an error during the app build. |
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.
Thanks. I fixed comments and squashed into a single commit.
d7d7fbe
to
0f9e681
Compare
On
On this PR branch:
The INFO logging from this |
@danielballan, thanks for the catch. Looked into this more, if in the
Looking at the code tiled/tiled/commandline/_serve.py Line 176 in 0cd0407
I confirmed that I see my message through that path:
There is no such code in Should this PR also fix this? |
Python's default behavior is to display WARNING level and above (ERROR, CRITICAL) but not INFO or DEBUG. If we want messages from a certain logger at INFO level to appear, we'll need to register a logging handler somewhere. This message
comes from tiled/tiled/commandline/_serve.py Lines 111 to 114 in 0cd0407
I don't think your log message appears under any conditions, in this branch, so I guess we should address that in this PR. We'll need something in the spirit of tiled/tiled/commandline/_serve.py Lines 176 to 178 in 0cd0407
Maybe: from tiled.catalog.adapter import logger as catalog_logger
catalog_logger.addHandler(StreamHandler())
catalog_logger.setLevel("INFO") |
Woudl you want to also add the verbosity parameter that |
I have an open mind. One pattern we've used in caproto is to count the number of v's, so |
fixes #721