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.
if err := recover(); err != nil {
logger = logger.WithField("error", err)
logger.Errorln("syncer: unexpected panic")
debug.PrintStack()
logger.Errorf("syncer: unexpected panic\n%s\n", debug.Stack())
}
// when the synchronization process is complete