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__