✨ Enhance logging configuration by introducing file output options and rotation settings in config.dev.toml. Update logger implementation to support multiple output streams, including file logging with rotation using lumberjack. Improve error handling and logging across various components, ensuring consistent logging practices. Update .gitignore to include log files and compressed logs. Add new Go module dependency for lumberjack.
This commit is contained in:
@@ -50,7 +50,7 @@ func TestJetStreamToTimescaleFlow(t *testing.T) {
|
||||
}
|
||||
defer logger.Sync()
|
||||
|
||||
pool, err := postgresinfra.ProvideDB(cfg)
|
||||
pool, err := postgresinfra.ProvideDB(cfg, logger)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to init postgres: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user