Skip to content

Commit

Permalink
Fixes in log message - no change expected [skip-ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Oct 9, 2024
1 parent 7f5c3bf commit 355d15e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/setscoredeffunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,12 @@ FunctorCode ScoreDefSetGrpSymFunctor::VisitGrpSym(GrpSym *grpSym)
StaffDef *end = vrv_cast<StaffDef *>(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;
}
Expand Down
4 changes: 2 additions & 2 deletions src/toolkit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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<char *>(&c);
Expand Down

0 comments on commit 355d15e

Please sign in to comment.