mirror of
https://github.com/tale/headplane.git
synced 2026-08-11 06:16:52 +00:00
feat: switch agent to a periodic dump rather than long running process
This commit is contained in:
@@ -59,7 +59,7 @@ func (l *Logger) SetDebug(enabled bool) {
|
||||
func (l *Logger) log(level LogLevel, format string, v ...any) {
|
||||
msg := fmt.Sprintf(format, v...)
|
||||
|
||||
fmt.Printf("LOG %s %s\n", level, msg)
|
||||
fmt.Fprintf(os.Stderr, "LOG %s %s\n", level, msg)
|
||||
if level == LevelFatal {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user