diff options
| author | thecharlesblake | 2017-11-11 12:20:31 +0000 |
|---|---|---|
| committer | thecharlesblake | 2017-11-11 12:20:31 +0000 |
| commit | 14f534452ac99913931c0513532dfbad2e277493 (patch) | |
| tree | 6fa6d5600760a38eff1b75c6b4243d769bde75a6 /src/main/main.cpp | |
| parent | Refactor command line helper (diff) | |
| download | metasol-14f534452ac99913931c0513532dfbad2e277493.tar.gz metasol-14f534452ac99913931c0513532dfbad2e277493.zip | |
Update logging
Diffstat (limited to 'src/main/main.cpp')
| -rw-r--r-- | src/main/main.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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 <iostream> - #include <boost/program_options.hpp> #include <rapidjson/document.h> @@ -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<string> 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); } } |
