Use internal logger instead of std stream

This commit is contained in:
Michael Krasnyk 2017-01-12 23:25:32 +01:00 committed by Patrick Niklaus
parent fd57c5b48b
commit bb4f13a47c
3 changed files with 9 additions and 3 deletions

View File

@ -179,8 +179,10 @@ catch (const std::bad_alloc &e)
util::Log(logERROR) << "Please provide more memory or consider using a larger swapfile";
return EXIT_FAILURE;
}
#ifdef _WIN32
catch (const std::exception &e)
{
std::cerr << "[exception] " << e.what();
util::Log(logERROR) << "[exception] " << e.what();
return EXIT_FAILURE;
}
#endif

View File

@ -172,8 +172,10 @@ catch (const std::bad_alloc &e)
util::Log(logERROR) << "Please provide more memory or consider using a larger swapfile";
return EXIT_FAILURE;
}
#ifdef _WIN32
catch (const std::exception &e)
{
std::cerr << "[exception] " << e.what();
util::Log(logERROR) << "[exception] " << e.what() << std::endl;
return EXIT_FAILURE;
}
#endif

View File

@ -350,8 +350,10 @@ catch (const std::bad_alloc &e)
util::Log(logWARNING) << "Please provide more memory or consider using a larger swapfile";
return EXIT_FAILURE;
}
#ifdef _WIN32
catch (const std::exception &e)
{
std::cerr << "[exception] " << e.what();
util::Log(logERROR) << "[exception] " << e.what();
return EXIT_FAILURE;
}
#endif