Prevent log deletion by inactive_node (#802)

* Prevent log deletion by inactive_node

if logging.max_size > default value

* Clang formatting
This commit is contained in:
SergiySW 2018-05-03 14:08:43 +03:00 committed by clemahieu
commit 1880a873b4

View file

@ -4068,6 +4068,7 @@ alarm (*service),
work (1, nullptr)
{
boost::filesystem::create_directories (path);
logging.max_size = std::numeric_limits<std::uintmax_t>::max ();
logging.init (path);
node = std::make_shared<rai::node> (init, *service, 24000, path, alarm, logging, work);
}