From 361c14ccba29fe3a3f98390af4d34f8fa5648fe3 Mon Sep 17 00:00:00 2001 From: lltcggie Date: Mon, 7 Dec 2015 17:00:01 +0900 Subject: [PATCH] =?UTF-8?q?CUI=E3=81=A7=E3=82=82=E3=82=A8=E3=83=A9?= =?UTF-8?q?=E3=83=BC=E3=83=AD=E3=82=B0=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=82=92?= =?UTF-8?q?=E8=A1=8C=E3=81=86=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/Source.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/waifu2x-caffe/Source.cpp b/waifu2x-caffe/Source.cpp index aa9ee3c..9e0142d 100644 --- a/waifu2x-caffe/Source.cpp +++ b/waifu2x-caffe/Source.cpp @@ -5,6 +5,8 @@ #include #include #include +#include +#include #include "../common/waifu2x.h" @@ -52,6 +54,14 @@ int main(int argc, char** argv) { 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_"); + // definition of command line arguments TCLAP::CmdLine cmd("waifu2x reimplementation using Caffe", ' ', "1.0.0");