say: fix assertion in log_format when called for boot or syslog logger
It's OK to use json format with the boot logger. As for syslog, let's add a check to Lua's log_format() so that it fails gracefully rather than raising an assertion. Closes #3946
Showing
- extra/exports 1 addition, 0 deletionsextra/exports
- src/lib/core/say.c 7 additions, 3 deletionssrc/lib/core/say.c
- src/lib/core/say.h 7 additions, 0 deletionssrc/lib/core/say.h
- src/lua/log.lua 15 additions, 0 deletionssrc/lua/log.lua
- test/app-tap/logger.test.lua 5 additions, 1 deletiontest/app-tap/logger.test.lua
Loading
Please register or sign in to comment