Mercurial > gemma
diff pkg/imports/sr.go @ 5561:b91716d2acc6
Fixed log message analyzing in log export.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 11 Feb 2022 18:57:11 +0100 |
parents | f2204f91d286 |
children | 5152b4db40cc |
line wrap: on
line diff
--- a/pkg/imports/sr.go Wed Feb 09 18:34:40 2022 +0100 +++ b/pkg/imports/sr.go Fri Feb 11 18:57:11 2022 +0100 @@ -253,8 +253,8 @@ func compileRecoverRegs() { bottleneckRe = regexp.MustCompile(`Bottleneck:\s*(.+)\s*$`) surveyTypeRe = regexp.MustCompile(`Processing as\s+([^\s]+)\s+beam scan.`) - dateRe = regexp.MustCompile(`Survey date:\s*(\d{4}-\d{2}-\d{2}).`) - negateZRe = regexp.MustCompile(`Z values will be negated.`) + dateRe = regexp.MustCompile(`Survey date:\s*(\d{4}-\d{2}-\d{2})`) + negateZRe = regexp.MustCompile(`Z values will be negated\.`) } // Description gives a short info about relevant facts of this import. @@ -305,6 +305,7 @@ } if sr.NegateZ != nil && *sr.NegateZ { + descs = append(descs, "negateZ") } else if negZ != nil && *negZ { log.Debugln("negateZ recovered") descs = append(descs, "negateZ")