I also have some scheduled scripts. I noticed that one of the scheduled scripts wasn't logging output that it should.. it's a firmware upgrader that should either
[admin@mikrotik-ap-2] > /system logging print where action="papertrail" Flags: X - disabled, I - invalid, * - default # TOPICS ACTION PREFIX 0 !debug papertrail !dns
:log info "Firmware doesn't need upgrading"
:log warning "Upgrading firmware!"
Running the script manually revealed a syntax error:
This syntax error,
[admin@mikrotik-ap-2] /system script> run 0 bad command name get (line 1 column 8)
, never appeared in my Papertrail logs. It looks like if the scheduler gets an error from script execution, it's just swallowed, which would be a bad behavior to have!
bad command name get (line 1 column 8)
Have I misconfigured something?