From 14f534452ac99913931c0513532dfbad2e277493 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Sat, 11 Nov 2017 12:20:31 +0000 Subject: Update logging --- src/main/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/main.cpp') diff --git a/src/main/main.cpp b/src/main/main.cpp index 77d5d5b..803b587 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -1,5 +1,3 @@ -#include - #include #include @@ -7,6 +5,7 @@ #include "input-output/deal_parser.h" #include "game/game_state.h" #include "solver/solver.h" +#include "input-output/log_helper.h" using namespace rapidjson; @@ -45,7 +44,7 @@ int main(int argc, const char* argv[]) { } void solve_random_game(int seed, const sol_rules& rules) { - cout << "Attempting to solve with seed: " << seed << "...\n"; + LOG_INFO << "Attempting to solve with seed: " << seed << "...\n"; game_state gs(seed, rules); solve_game(gs, rules); } @@ -59,7 +58,7 @@ void solve_input_files(const vector input_files, const sol_rules rules) // Creates a game state object from the json, plus a solver game_state gs(doc); - cout << "Attempting to solve " << input_json << "...\n"; + LOG_INFO << "Attempting to solve " << input_json << "...\n"; solve_game(gs, rules); } } -- cgit v1.2.1