mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 05:32:47 +00:00
GUIでエラーログを保存するようにした
This commit is contained in:
parent
14fe5ea21a
commit
34e0260ac8
@ -1,4 +1,5 @@
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#include <glog/logging.h>
|
||||
#include <windows.h>
|
||||
#include <Commctrl.h>
|
||||
#include <tchar.h>
|
||||
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user