Skip to content
Snippets Groups Projects
  • Konstantin Osipov's avatar
    b29d54d0
    log: fix a sever performance bug · b29d54d0
    Konstantin Osipov authored
    Any function of Lua log module would first evaluate the call stack,
    and only then invoke the logger function -- even if the text is
    then sent to /dev/null because log level is too low.
    
    Short cut the log call in case the log level is low and the message
    is muted.
    b29d54d0
    History
    log: fix a sever performance bug
    Konstantin Osipov authored
    Any function of Lua log module would first evaluate the call stack,
    and only then invoke the logger function -- even if the text is
    then sent to /dev/null because log level is too low.
    
    Short cut the log call in case the log level is low and the message
    is muted.