Skip to content

Commit

Permalink
Remove superfluous \n from spdlog
Browse files Browse the repository at this point in the history
  • Loading branch information
meator committed Sep 10, 2024
1 parent c5786fc commit 595dd14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Application::Application(const char *path, LineReader &liner,
this->terminal = strcmp(value, "true") == 0;
}
} catch (const escape_error &e) {
SPDLOG_ERROR("{}: {}\n", location, e.what());
SPDLOG_ERROR("{}: {}", location, e.what());
throw escape_error((std::string)e.what() + " (line " +
std::to_string(line_number) + ")");
}
Expand Down
4 changes: 2 additions & 2 deletions src/LocaleSuffixes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ std::string LocaleSuffixes::set_locale() {
char *user_locale = setlocale(LC_MESSAGES, "");
if (!user_locale) {
SPDLOG_WARN("Locale configuration invalid, check locale(1).\n"
"No translated menu entries will be available.\n");
"No translated menu entries will be available.");
user_locale = setlocale(LC_MESSAGES, "C");
if (!user_locale) {
SPDLOG_ERROR("POSIX/C locale is not available, setlocale(3) "
"failed. Bailing.\n");
"failed. Bailing.");
exit(EXIT_FAILURE);
}
}
Expand Down

0 comments on commit 595dd14

Please sign in to comment.