Closed imro2 closed 4 years ago
Fair point! I'm not quite sure how this piece of code came in for such shoddy treatment.
It has been a design choice to make this module stand-alone (in that it should not depend on other openLuup modules) so it has no in-built error logging. It should, though, return an error message to be reported from a higher level.
Thanks, AK
Having said this, it does actually write a dump file out to help with diagnostics, if DEBUG is enables for that module.
I have noticed that it wrote the dump, but the dump does not include what went wrong. I took a code that worked when called through
thank you for looking into this and for the amazing work
Development branch now has a fix for this issue. Can you confirm before I close?
Works great. Took me a little bit to realize it was in the startup log, but it is there with all necessary info.
thank you!
Excellent. Yes, the modules are loaded at startup, so that's when both compiler errors, and code that executes as the module is loaded, will appear. Errors from a running plugin with be in the regular log.
The fix was trivial, and tidied the code which was left over from a debugging development session and, unusually, never cleaned up.
Thanks for pointing this out.
I've been banging my head trying to figure out why my plugin was not loading in openLuup and could not find any logging. Basically when compile_lua fails during the plugin load, there is no logging what so ever. like the plugin did not exist. I am talking specifically about line 762 in loader.lua