Skip to content

Commit 9541fd0

Browse files
update a few deprecated loggers
1 parent 034a3c2 commit 9541fd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ func (br *IMBridge) isWarmingUp() bool {
476476
}
477477

478478
func (br *IMBridge) Start() {
479-
br.Log.Debugln("Finding bridge user")
479+
br.ZLog.Debug().Msg("Finding bridge user")
480480
br.user = br.loadDBUser()
481481
br.user.initDoublePuppet()
482482

@@ -541,7 +541,7 @@ func (br *IMBridge) Start() {
541541
go br.IPC.Loop()
542542

543543
go br.StartupSync()
544-
br.Log.Infoln("Initialization complete")
544+
br.ZLog.Info().Msg("Initialization complete")
545545
go br.PeriodicSync()
546546
}
547547

@@ -588,7 +588,7 @@ func (br *IMBridge) StartupSync() {
588588
syncChatMaxAge := time.Duration(br.Config.Bridge.Backfill.InitialSyncMaxAge*24*60) * time.Minute
589589
chats, err := br.IM.GetChatsWithMessagesAfter(time.Now().Add(-syncChatMaxAge))
590590
if err != nil {
591-
br.Log.Errorln("Failed to get chat list to backfill:", err)
591+
br.ZLog.Error().Err(err).Msg("Failed to get chat list to backfill")
592592
return
593593
}
594594
for _, chat := range chats {
@@ -602,7 +602,7 @@ func (br *IMBridge) StartupSync() {
602602
portal.Sync(true)
603603
}
604604
}
605-
br.Log.Infoln("Startup sync complete")
605+
br.ZLog.Info().Msg("Startup sync complete")
606606
br.IM.PostStartupSyncHook()
607607
}
608608

0 commit comments

Comments
 (0)