From 96a567086c5fc3bd2a94ac9229dd4d87c73ed3b1 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sun, 2 Jan 2011 02:33:24 +0000 Subject: [PATCH] Remove calls to wxPrintf and replace them with LOG_E(). Originally committed to SVN as r5090. --- aegisub/src/frame_main_events.cpp | 2 +- aegisub/src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/frame_main_events.cpp b/aegisub/src/frame_main_events.cpp index f0efe5d61..d1e260cc6 100644 --- a/aegisub/src/frame_main_events.cpp +++ b/aegisub/src/frame_main_events.cpp @@ -997,7 +997,7 @@ void FrameMain::OnOpenPreferences (wxCommandEvent &) { pref.ShowModal(); } catch (agi::Exception& e) { - wxPrintf("Caught agi::Exception: %s -> %s\n", e.GetName(), e.GetMessage()); + LOG_E("dialog/preferences") << "Caught exception: " << e.GetName() << " -> " << e.GetMessage(); } } diff --git a/aegisub/src/main.cpp b/aegisub/src/main.cpp index 95a9a0b90..ed066efba 100644 --- a/aegisub/src/main.cpp +++ b/aegisub/src/main.cpp @@ -177,7 +177,7 @@ bool AegisubApp::OnInit() { const std::string conf_user(StandardPaths::DecodePath(_T("?user/config.json"))); config::opt = new agi::Options(conf_user, GET_DEFAULT_CONFIG(default_config)); } catch (agi::Exception& e) { - wxPrintf("Caught agi::Exception: %s -> %s\n", e.GetName(), e.GetMessage()); + LOG_E("config/init") << "Caught exception: " << e.GetName() << " -> " << e.GetMessage(); } #ifdef __WXMSW__