Untested fix for logging messages in injected consoles.