Skip to content

Commit

Permalink
logger: catch up with logger::info interface change (#1050)
Browse files Browse the repository at this point in the history
fixup for #1026, related #1034

This PR fixes diagnostics broken with #1026.
  • Loading branch information
wx257osn2 authored Dec 23, 2024
1 parent bc9c3df commit cabbdef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Cmd/New.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ createTemplateFiles(const bool isBin, const std::string_view projectName) {
writeToFile(ofs, projectName / ".gitignore"_path, "/poac-out");
writeToFile(ofs, projectName / "src"_path / "main.cc", MAIN_CC);

logger::info("Created", "binary (application) `", projectName, "` package");
logger::info("Created", "binary (application) `{}` package", projectName);
} else {
fs::create_directories(projectName / "include"_path / projectName);
writeToFile(
Expand All @@ -121,7 +121,7 @@ createTemplateFiles(const bool isBin, const std::string_view projectName) {
getHeader(projectName)
);

logger::info("Created", "library `", projectName, "` package");
logger::info("Created", "library `{}` package", projectName);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Cmd/Tidy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tidyImpl(const Command& makeCmd) {
const std::chrono::duration<double> elapsed = end - start;

if (exitCode == EXIT_SUCCESS) {
logger::info("Finished", "clang-tidy in ", elapsed.count(), "s");
logger::info("Finished", "clang-tidy in {}s", elapsed.count());
}
return exitCode;
}
Expand Down

0 comments on commit cabbdef

Please sign in to comment.