From 30b8c5fd2e7f37c44fac8af05bc0387903e05f4b Mon Sep 17 00:00:00 2001 From: lltcggie Date: Mon, 7 Dec 2015 16:59:42 +0900 Subject: [PATCH] =?UTF-8?q?GUI=E3=81=A7=E3=82=A8=E3=83=A9=E3=83=BC?= =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=82=92=E8=A1=8C?= =?UTF-8?q?=E3=81=86=E3=82=BF=E3=82=A4=E3=83=9F=E3=83=B3=E3=82=B0=E3=82=92?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- waifu2x-caffe-gui/Source.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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;