Cody Rodgers commented on merge request !4995 at OpenMW / openmw

Cody Rodgers
2026-02-07T03:37:51Z

I have updated the code so that the context is prepended to the log message, just like the print() function, but it was difficult to get access to the current script name/path. So I had to move the log function into the LuaState class, which is the same way the print() function is implemented and how I got the idea. Let me know if you can think of a better way or if that is not acceptable. I have marked the PR as a draft for now.