Initialize max_object_depth in appender config

by setting a default value, for file_appender and gelf_appender.
For issue https://github.com/bitshares/bitshares-core/issues/1392
This commit is contained in:
abitmore 2018-10-19 15:37:55 +00:00
parent 62ebc67cb3
commit d35e296d29
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ class file_appender : public appender {
bool rotate = false;
microseconds rotation_interval;
microseconds rotation_limit;
uint32_t max_object_depth;
uint32_t max_object_depth = FC_MAX_LOG_OBJECT_DEPTH;
};
file_appender( const variant& args );
~file_appender();

View file

@ -15,7 +15,7 @@ namespace fc
{
string endpoint = "127.0.0.1:12201";
string host = "fc"; // the name of the host, source or application that sent this message (just passed through to GELF server)
uint32_t max_object_depth;
uint32_t max_object_depth = FC_MAX_LOG_OBJECT_DEPTH;
};
gelf_appender(const variant& args);