From 355d15ed6d2d6e621ba07d485862040de201b10a Mon Sep 17 00:00:00 2001 From: Laurent Pugin Date: Wed, 9 Oct 2024 13:21:49 +0200 Subject: [PATCH] Fixes in log message - no change expected [skip-ci] --- src/setscoredeffunctor.cpp | 4 ++-- src/toolkit.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/setscoredeffunctor.cpp b/src/setscoredeffunctor.cpp index 29f6548c8ce..7eaeee62d0a 100644 --- a/src/setscoredeffunctor.cpp +++ b/src/setscoredeffunctor.cpp @@ -539,12 +539,12 @@ FunctorCode ScoreDefSetGrpSymFunctor::VisitGrpSym(GrpSym *grpSym) StaffDef *end = vrv_cast(scoreDef->FindDescendantByComparison(&compare, level)); if (!start || !end) { - LogWarning("Could not find startid/endid on level %d for <'%s'>", level, grpSym->GetID().c_str()); + LogWarning("Could not find startid/endid on level %d for '%s'", level, grpSym->GetID().c_str()); return FUNCTOR_CONTINUE; } if (start->GetParent() != end->GetParent()) { - LogWarning("<'%s'> has mismatching parents for startid:<'%s'> and endid:<'%s'>", grpSym->GetID().c_str(), + LogWarning("'%s' has mismatching parents for startid:%s and endid:%s", grpSym->GetID().c_str(), startId.c_str(), endId.c_str()); return FUNCTOR_CONTINUE; } diff --git a/src/toolkit.cpp b/src/toolkit.cpp index 24e69a6baa6..afc211b406d 100644 --- a/src/toolkit.cpp +++ b/src/toolkit.cpp @@ -367,7 +367,7 @@ bool Toolkit::LoadUTF16File(const std::string &filename) /// Loading a UTF-16 file with basic conversion ot UTF-8 /// This is called after checking if the file has a UTF-16 BOM - LogWarning("The file seems to be UTF-16 - trying to convert to UTF-8"); + LogInfo("The file seems to be UTF-16 - trying to convert to UTF-8"); std::ifstream fin(filename.c_str(), std::ios::in | std::ios::binary); if (!fin.is_open()) { @@ -385,7 +385,7 @@ bool Toolkit::LoadUTF16File(const std::string &filename) // order of the bytes has to be flipped if (u16data.at(0) == u'\uFFFE') { - LogWarning("The file seems to have been loaded as little endian - trying to convert to big endian"); + LogInfo("The file seems to have been loaded as little endian - trying to convert to big endian"); // convert to big endian (swap bytes) std::transform(std::begin(u16data), std::end(u16data), std::begin(u16data), [](char16_t c) { auto p = reinterpret_cast(&c);