From 3c8549557617dd09b377b85c3ad7ada309579d56 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Thu, 5 Sep 2024 08:35:26 +0200 Subject: [PATCH] Print original path to the saved file instead of a path to the temporary kml Signed-off-by: Alexander Borsuk --- map/bookmark_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map/bookmark_helpers.cpp b/map/bookmark_helpers.cpp index d72634717d..e8a06435dc 100644 --- a/map/bookmark_helpers.cpp +++ b/map/bookmark_helpers.cpp @@ -566,7 +566,6 @@ bool SaveGpxData(kml::FileData & kmlData, Writer & writer) bool SaveKmlFile(kml::FileData & kmlData, std::string const & file, KmlFileType fileType) { FileWriter writer(file); - LOG(LINFO, ("Save kml file", file, ", type", fileType)); switch (fileType) { case KmlFileType::Text: // fallthrough @@ -582,6 +581,7 @@ bool SaveKmlFile(kml::FileData & kmlData, std::string const & file, KmlFileType bool SaveKmlFileSafe(kml::FileData & kmlData, std::string const & file, KmlFileType fileType) { + LOG(LINFO, ("Save kml file of type", fileType, "to", file)); return base::WriteToTempAndRenameToFile(file, [&kmlData, fileType](std::string const & fileName) { return SaveKmlFile(kmlData, fileName, fileType);