forked from goodboy/tractor
1
0
Fork 0
less_logging
Tyler Goodlet 2021-10-14 11:47:06 -04:00
parent 1f0cc15675
commit 6cda17436a
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
Add a custom 'CANCEL' log level and use through runtime.
In order to reduce log messages and also start toying with the idea of
"application layer" oriented tracing, we added this new level just above
'runtime' but just below 'info'. It is intended to be used solely for
cancellation and teardown related messages. Included are some small
overrides to the stdlib's ``logging.LoggerAdapter`` to passthrough the
correct stack frame to show when one of the custom level methods is
used.