#1034 Traceback in loggingmanager due to invalid log file config

Reporter Zash
Owner Nobody
Stars ★ (1)
  • Type-Defect
  • Difficulty-Easy
  • Priority-Medium
  • Status-Accepted
  1. Zash on

    What steps will reproduce the problem? Logging to a file configured but no filename set. log = { { to = "file" } } What is the expected output? An friendly message telling you your logging config is wrong. What do you see instead? lua: ./core/loggingmanager.lua:173: bad argument #1 to 'io_open' (string expected, got nil) stack traceback: [C]: in function 'io_open' ./core/loggingmanager.lua:173: in function 'sink_maker' ./core/loggingmanager.lua:49: in function 'add_rule' ./core/loggingmanager.lua:84: in function 'apply_sink_rules' ./core/loggingmanager.lua:36: in function '__newindex' ./core/loggingmanager.lua:205: in main chunk [C]: in function 'require' prosody:140: in function 'init_logging' prosody:412: in main chunk [C]: in ?

  2. MattJ on

    • tags Difficulty-Easy

New comment

Not published. Used for spam prevention and optional update notifications.