#1034 Traceback in loggingmanager due to invalid log file config
Reporter
Zash
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Difficulty-Easy
Priority-Medium
Type-Defect
Status-Accepted
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 ?
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 ?