Incorrect signature for logger call
https://github.com/shotgunsoftware/tk-maya/blob/00fa021e40044c6d908f98dc2dc62eb33ce4098e/engine.py#L153
The string expansion here can be read as an argument here if custom handlers are added to the core handler. Update (and check all other apps and engines) for logger calls where the string is concatenated with "," rather than using fstring or % formatting.
logger.debug("Refreshing the engine, previous context: '%r'", prev_context)
should be
logger.debug("Refreshing the engine, previous context: '%r'" % prev_context)
Also here : https://github.com/shotgunsoftware/tk-maya/blob/00fa021e40044c6d908f98dc2dc62eb33ce4098e/engine.py#L177
Hi @pmacdonald-falcons, thanks for reporting this issue.
I am not sure I understand the problem. From what I know, the Toolkit logger uses the Python logging module. And, according to the documentation, the % string formatting is supported with the function *args parameters:
The msg is the message format string, and the args are the arguments which are merged into msg using the string formatting operator.
Although, I am not sure what you mean by custom handlers so I might be missing something here. Please let me know.