Remove calls to wxPrintf and replace them with LOG_E().

Originally committed to SVN as r5090.
This commit is contained in:
Amar Takhar 2011-01-02 02:33:24 +00:00
parent 64f60e0215
commit 96a567086c
2 changed files with 2 additions and 2 deletions

View File

@ -997,7 +997,7 @@ void FrameMain::OnOpenPreferences (wxCommandEvent &) {
pref.ShowModal(); pref.ShowModal();
} catch (agi::Exception& e) { } 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();
} }
} }

View File

@ -177,7 +177,7 @@ bool AegisubApp::OnInit() {
const std::string conf_user(StandardPaths::DecodePath(_T("?user/config.json"))); const std::string conf_user(StandardPaths::DecodePath(_T("?user/config.json")));
config::opt = new agi::Options(conf_user, GET_DEFAULT_CONFIG(default_config)); config::opt = new agi::Options(conf_user, GET_DEFAULT_CONFIG(default_config));
} catch (agi::Exception& e) { } 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__ #ifdef __WXMSW__