clean up debug code

This commit is contained in:
Dan Wilson 2022-03-14 13:22:54 +00:00
parent 80629d12fa
commit dc6c94b7af

View file

@ -67,8 +67,7 @@ func (s *Synchronizer) Sync(ctx context.Context, user *core.User) (*core.Batch,
// a panic that should absolutely never happen. // a panic that should absolutely never happen.
if err := recover(); err != nil { if err := recover(); err != nil {
logger = logger.WithField("error", err) logger = logger.WithField("error", err)
logger.Errorln("syncer: unexpected panic") logger.Errorf("syncer: unexpected panic\n%s\n", debug.Stack())
debug.PrintStack()
} }
// when the synchronization process is complete // when the synchronization process is complete