diff --git a/waifu2x-caffe-gui/Source.cpp b/waifu2x-caffe-gui/Source.cpp index 0ab8259..5a0771a 100644 --- a/waifu2x-caffe-gui/Source.cpp +++ b/waifu2x-caffe-gui/Source.cpp @@ -537,14 +537,6 @@ private: const auto cuDNNCheckEndTime = std::chrono::system_clock::now(); - // Caffeのエラーでないログを保存しないようにする - google::SetLogDestination(google::INFO, ""); - google::SetLogDestination(google::WARNING, ""); - - // Caffeのエラーログを「error_log_〜」に出力 - google::SetLogDestination(google::ERROR, "error_log_"); - google::SetLogDestination(google::FATAL, "error_log_"); - Waifu2x::eWaifu2xError ret; Waifu2x w; @@ -1188,6 +1180,14 @@ int WINAPI WinMain(HINSTANCE hInstance, { Waifu2x::init_liblary(); + // Caffeのエラーでないログを保存しないようにする + google::SetLogDestination(google::INFO, ""); + google::SetLogDestination(google::WARNING, ""); + + // Caffeのエラーログを「error_log_〜」に出力 + google::SetLogDestination(google::ERROR, "error_log_"); + google::SetLogDestination(google::FATAL, "error_log_"); + // CDialogクラスでダイアログを作成する CDialog cDialog; CDialog cDialog2;