From b512f9a27b3538fdde7999ee5d3f40a480b0d361 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 19:09:21 +0100 Subject: Use a consistent style for log messages --- src/Patchage.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/Patchage.cpp') diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 5d38444..1703d8b 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -332,7 +332,7 @@ Patchage::Patchage(int argc, char** argv) _about_win->set_logo(Gdk::Pixbuf::create_from_file( bundle_location() + "/Resources/Patchage.icns")); } catch (const Glib::Exception& e) { - _log.error(fmt::format("failed to set logo ({})", e.what())); + _log.error(fmt::format("Failed to set logo ({})", e.what())); } #endif @@ -654,14 +654,16 @@ Patchage::show_open_session_dialog() const std::string dir = dialog.get_filename(); if (g_chdir(dir.c_str())) { - _log.error("Failed to switch to session directory " + dir); + _log.error( + fmt::format("Failed to switch to session directory \"{}\"", dir)); return; } if (system("./jack-session") < 0) { - _log.error("Error executing `./jack-session' in " + dir); + _log.error( + fmt::format("Error executing \"./jack-session\" in {}", dir)); } else { - _log.info("Loaded session " + dir); + _log.info(fmt::format("Loaded session {}", dir)); } } @@ -699,7 +701,7 @@ Patchage::save_session(bool close) std::string path = dialog.get_filename(); if (g_mkdir_with_parents(path.c_str(), 0740)) { - _log.error("Failed to create session directory " + path); + _log.error(fmt::format("Failed to create session directory {}", path)); return; } -- cgit v1.2.1