Page MenuHomeVyOS Platform

Document the common logging library airbag.py
Closed, InvalidPublic

Description

airbag.py code looks at /tmp and /config for a file vyos.{flag}.debug. It also says it should write the log to /tmp/developer-log or to the path set inside the flag file, but my testing shows it doesn't actually work. The way to use the flags should be documented.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

jjakob created this task.
jjakob created this object in space S1 VyOS Public.

Ah, I figured it out - the contents of vyos.log.debug are used as the path to the logfile, if empty (but present) the default /tmp/developer-log will be used, otherwise no logfile will be written. But I think I've hit a bug - if multiple 'flag' are set (other than 'log') the system hangs during boot.

erkin set Issue type to Improvement (missing useful functionality).Aug 30 2021, 6:40 AM
erkin added a project: Restricted Project.
erkin removed a subscriber: Active contributors.
Viacheslav added a subscriber: Viacheslav.

Close it, as it is not bug/feature