clean up debug code
This commit is contained in:
parent
80629d12fa
commit
dc6c94b7af
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue