-
Notifications
You must be signed in to change notification settings - Fork 1k
asctime in logging will never output because strftime is not an attribute of time #725
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
Comments
To support
|
Perhaps this should be added as a dependency for logging? I guess it's optional behaviour though, a comment in the code along these lines might be more suitable |
Interesting. I didn't think there was an separate time package given that there's already time in the standard image. |
@DracoTomes In order to keep firmware size down, we provide the most common / most useful stuff by default. Then we provide optional extras. Really we should rename micropython-lib's
For similar reasons, I think it should be optional. But yes, documentation/comment would definitely be a good idea. |
That was my assumption as well, good to know. Should I close this Issue now, given there's not actually anything wrong or should I leave this open to reference for a future commit? |
Expexted behaviour:
Using this formatter the log output will include a timestamp.
Like this:
Tue Feb 17 09:42:58 2009 | MAIN | INFO - test
Actual behaviour:
Timestamp will always be
None
None | MAIN | INFO - test
Cause:
The formatTime() method checks for the strftime attribute, which does not exist in the Micropython implementation:
The text was updated successfully, but these errors were encountered: