From 34e0260ac8b79d88ba14e3af6c44ef8e5972491b Mon Sep 17 00:00:00 2001 From: lltcggie Date: Mon, 7 Dec 2015 13:36:49 +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=82=92=E4=BF=9D=E5=AD=98=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- waifu2x-caffe-gui/Source.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/waifu2x-caffe-gui/Source.cpp b/waifu2x-caffe-gui/Source.cpp index 972332f..6a1fe72 100644 --- a/waifu2x-caffe-gui/Source.cpp +++ b/waifu2x-caffe-gui/Source.cpp @@ -1,4 +1,5 @@ #define _CRT_SECURE_NO_WARNINGS +#include #include #include #include @@ -22,6 +23,8 @@ #include "CDialog.h" #include "CControl.h" +#undef ERROR + #define WM_FAILD_CREATE_DIR (WM_APP + 5) #define WM_ON_WAIFU2X_ERROR (WM_APP + 6) #define WM_END_THREAD (WM_APP + 7) @@ -534,6 +537,10 @@ private: const auto cuDNNCheckEndTime = std::chrono::system_clock::now(); + // Caffeのエラーログを「error_log_〜」に出力 + google::SetLogDestination(google::ERROR, "error_log_"); + google::SetLogDestination(google::FATAL, "error_log_"); + Waifu2x::eWaifu2xError ret; Waifu2x w;