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;