##// END OF EJS Templates
MAINT: don't use f-strings in logs...
MAINT: don't use f-strings in logs There are many reason not to use f-string in logs, - F-strings are eager, so might be slow. - prevent structured logging or handler to highlight. - Security (untrusted input can lead to DOS on formatting, https://discuss.python.org/t/safer-logging-methods-for-f-strings-and-new-style-formatting/13802) - Performance (we can filter before formatting).

File last commit:

r27747:f5d4e0ac
r28051:bef3df12
Show More
log.py
5 lines | 123 B | text/x-python | PythonLexer
from warnings import warn
warn("IPython.utils.log has moved to traitlets.log", stacklevel=2)
from traitlets.log import *