-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Test/integration testing #951
Conversation
This reverts commit f5f3996.
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
taipy/core/_orchestrator/_dispatcher/_standalone_job_dispatcher.py
Outdated
Show resolved
Hide resolved
@@ -34,7 +34,7 @@ def _get_logger(cls): | |||
cls.__logger.setLevel(logging.INFO) | |||
ch = logging.StreamHandler(sys.stdout) | |||
ch.setLevel(logging.INFO) | |||
formatter = logging.Formatter("[%(asctime)s][%(name)s][%(levelname)s] %(message)s", "%Y-%m-%d %H:%M:%S") | |||
ch.setFormatter(formatter) | |||
f = logging.Formatter("[%(asctime)s.%(msecs)03d][%(name)s][%(levelname)s] %(message)s", "%Y-%m-%d %H:%M:%S") |
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.
Add milliseconds to default logging format.
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.
Will this cause too much noise?
It affects the whole application so I think we need third opinion about this
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.
My opinion is that in a multithreading/multiprocessing context, having milliseconds in the logs is more than useful to understand what's happening. This is not only true for us as developers but also for our users.
However, I agree we should discuss it during the daily to have more opinions on that.
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.
@FlorianJacta @FabienLelaquais Is it ok for you to have a default log formatting with milliseconds?
No description provided.