Skip to content

Commit 0cbf476

Browse files
committed
chore: change logger format for an specific log message regarding db conn usage
1 parent 864b19d commit 0cbf476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/repository/repository.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func NewSQLRepository(config *SQLServerConfig) (*SQLRepository, error) {
148148
if log.IsLevelEnabled(log.DebugLevel) {
149149
go func() {
150150
for {
151-
fmt.Printf("In use %d not use %d open %d wait %d\n", db.Stats().Idle, db.Stats().InUse, db.Stats().OpenConnections, db.Stats().WaitCount)
151+
log.Debugf("In use %d not use %d open %d wait %d", db.Stats().Idle, db.Stats().InUse, db.Stats().OpenConnections, db.Stats().WaitCount)
152152
time.Sleep(time.Second * 5)
153153
}
154154
}()

0 commit comments

Comments
 (0)