Skip to content

Commit

Permalink
CUIでもエラーログの設定を行うようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
lltcggie committed Dec 7, 2015
1 parent 30b8c5f commit 361c14c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions waifu2x-caffe/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <boost/foreach.hpp>
#include <functional>
#include <boost/tokenizer.hpp>
#include <boost/tokenizer.hpp>
#include <glog/logging.h>
#include "../common/waifu2x.h"


Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit 361c14c

Please sign in to comment.