mirror of
https://github.com/lltcggie/waifu2x-caffe.git
synced 2025-06-26 21:52:49 +00:00
GUIでエラーログの設定を行うタイミングを変更
This commit is contained in:
parent
0b94421031
commit
30b8c5fd2e
@ -537,14 +537,6 @@ private:
|
|||||||
|
|
||||||
const auto cuDNNCheckEndTime = std::chrono::system_clock::now();
|
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::eWaifu2xError ret;
|
||||||
|
|
||||||
Waifu2x w;
|
Waifu2x w;
|
||||||
@ -1188,6 +1180,14 @@ int WINAPI WinMain(HINSTANCE hInstance,
|
|||||||
{
|
{
|
||||||
Waifu2x::init_liblary();
|
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;
|
CDialog cDialog;
|
||||||
CDialog cDialog2;
|
CDialog cDialog2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user