diff pkg/imports/fd.go @ 5560:f2204f91d286

Join the log lines of imports to the log exports to recover data from them. Used in SR export to extract information that where in the meta json but now are only found in the log.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 09 Feb 2022 18:34:40 +0100
parents 3bab0e19f08b
children 6270951dda28
line wrap: on
line diff
--- a/pkg/imports/fd.go	Thu Dec 02 12:37:33 2021 +0100
+++ b/pkg/imports/fd.go	Wed Feb 09 18:34:40 2022 +0100
@@ -48,7 +48,7 @@
 }
 
 // Description gives a short info about relevant facts of this import.
-func (fd *FairwayDimension) Description() (string, error) {
+func (fd *FairwayDimension) Description([]string) (string, error) {
 	return strings.Join([]string{
 		fd.URL,
 		fd.FeatureType,
@@ -486,7 +486,7 @@
 					oldID,
 				).Scan(&fdid, &lat, &lon)
 			}); err != nil {
-				feedback.Error(pgxutils.ReadableError{Err: err}.Error() +
+				feedback.Error(pgxutils.ReadableError{Err: err}.Error()+
 					"- while tracking invalidation of: %d", oldID)
 				continue
 			}