diff --git a/matterbridge.go b/matterbridge.go index 145ce68c..63fd12f7 100644 --- a/matterbridge.go +++ b/matterbridge.go @@ -52,6 +52,7 @@ func main() { cfg.BridgeValues().General.Debug = *flagDebug // if logging to a file, ensure it is closed when the program terminates + // nolint:errcheck defer func() { if f, ok := rootLogger.Out.(*os.File); ok { f.Sync()