Mercurial > gemma
diff pkg/imports/fd.go @ 5275:73563c4bba5b wfs-optional-sortby
Slight improvement of log messages for fd import.
author | wilde@azure1.rgb.intevation.de |
---|---|
date | Tue, 09 Jun 2020 10:43:43 +0200 |
parents | 41a67619c170 |
children | 3bab0e19f08b |
line wrap: on
line diff
--- a/pkg/imports/fd.go Tue Jun 09 10:10:31 2020 +0200 +++ b/pkg/imports/fd.go Tue Jun 09 10:43:43 2020 +0200 @@ -4,7 +4,7 @@ // SPDX-License-Identifier: AGPL-3.0-or-later // License-Filename: LICENSES/AGPL-3.0.txt // -// Copyright (C) 2018 by via donau +// Copyright (C) 2018, 2019, 2020 by via donau // – Österreichische Wasserstraßen-Gesellschaft mbH // Software engineering by Intevation GmbH // @@ -463,6 +463,8 @@ if features == 0 { feedback.Info("No new features found") + } else { + feedback.Info("Stored %d features", features) } // Invalidate features that have been removed from data source @@ -502,7 +504,8 @@ 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 } fds = append(fds, fdSummary{ID: fdid, Lat: lat, Lon: lon})