Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
remove info logs from datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszos4chain committed Nov 10, 2023
1 parent dff2c2a commit 0850a62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ func WithLogger(customLogger zLogger.GormLoggerInterface) ClientOps {
// Enable the logger on all services
c.cacheStore.options = append(c.cacheStore.options, cachestore.WithLogger(c.logger))
c.chainstate.options = append(c.chainstate.options, chainstate.WithLogger(c.logger))
c.dataStore.options = append(c.dataStore.options, datastore.WithLogger(&datastore.DatabaseLogWrapper{GormLoggerInterface: c.logger}))

dblogger := zLogger.NewGormLogger(false, 4)

c.dataStore.options = append(c.dataStore.options, datastore.WithLogger(&datastore.DatabaseLogWrapper{GormLoggerInterface: dblogger}))
c.taskManager.options = append(c.taskManager.options, taskmanager.WithLogger(c.logger))
c.notifications.options = append(c.notifications.options, notifications.WithLogger(c.logger))
}
Expand Down

0 comments on commit 0850a62

Please sign in to comment.