Skip to content

Commit

Permalink
logging: change some messages back to Info
Browse files Browse the repository at this point in the history
  • Loading branch information
timonegk committed Jan 13, 2025
1 parent f21613b commit eb2639e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/calendarsync/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func main() {
}

func Run(c *cli.Context) error {
log.Info("started calendarsync")
log.Infof("started calendarsync version %v", Version)

if c.Bool(flagVersion) {
fmt.Println("Version:", Version)
Expand All @@ -114,7 +114,7 @@ func Run(c *cli.Context) error {
if err != nil {
return err
}
log.Debug("loaded config file", "path", cfg.Path)
log.Info("loaded config file", "path", cfg.Path)

if len(c.String(flagStorageEncryptionKey)) > 0 {
log.Warn("Parsing the encryption key using the flag is deprecated. Please use the environment variable $CALENDARSYNC_ENCRYPTION_KEY instead.")
Expand Down Expand Up @@ -166,7 +166,7 @@ func Run(c *cli.Context) error {
if err != nil {
return err
}
log.Debug("loaded source adapter", "adapter", cfg.Source.Adapter.Type, "calendar", cfg.Source.Adapter.Calendar)
log.Info("loaded source adapter", "adapter", cfg.Source.Adapter.Type, "calendar", cfg.Source.Adapter.Calendar)

sinkLogger := log.With("adapter", cfg.Sink.Adapter.Type, "type", "sink")

Expand All @@ -181,7 +181,7 @@ func Run(c *cli.Context) error {
if err != nil {
return err
}
log.Debug("loaded sink adapter", "adapter", cfg.Sink.Adapter.Type, "calendar", cfg.Sink.Adapter.Calendar)
log.Info("loaded sink adapter", "adapter", cfg.Sink.Adapter.Type, "calendar", cfg.Sink.Adapter.Calendar)

// By default go runs a garbage collection once the memory usage doubles compared to the last GC run.
// Decrypting the storage in NewSourceAdapterFromConfig/NewSinkAdapterFromConfig requires a lot of memory,
Expand Down

0 comments on commit eb2639e

Please sign in to comment.