Use internal logger instead of std stream
This commit is contained in:
parent
fd57c5b48b
commit
bb4f13a47c
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user