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

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Feature (new functionality)

Event Timeline

jjakob triaged this task as Low priority.
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 added a project: Restricted Project.
erkin removed a subscriber: Global Notifications.
Viacheslav subscribed.

Close it, as it is not bug/feature

dmbaturin set Issue type to Feature (new functionality).Nov 8 2024, 10:50 AM