Mercurial > gemma
comparison pkg/imports/queue.go @ 5723:4c8652a61eab
Be more verbose in scheduler do errors.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 29 May 2024 12:49:20 +0200 |
parents | 0542aec69375 |
children |
comparison
equal
deleted
inserted
replaced
5722:0542aec69375 | 5723:4c8652a61eab |
---|---|
1039 var unchanged bool | 1039 var unchanged bool |
1040 if v, ok := errDo.(UnchangedError); ok { | 1040 if v, ok := errDo.(UnchangedError); ok { |
1041 feedback.Info("unchanged: %s", v.Error()) | 1041 feedback.Info("unchanged: %s", v.Error()) |
1042 unchanged = true | 1042 unchanged = true |
1043 } else if errDo != nil { | 1043 } else if errDo != nil { |
1044 feedback.Error("error in import: %v", | 1044 feedback.Error("error in import: %v %v", |
1045 idj, | |
1045 pgxutils.ReadableError{Err: errDo}) | 1046 pgxutils.ReadableError{Err: errDo}) |
1046 retry = idj.nextRetry(feedback) | 1047 retry = idj.nextRetry(feedback) |
1047 } | 1048 } |
1048 | 1049 |
1049 var errCleanup error | 1050 var errCleanup error |