#285 initialize max_object_depth in constructor

This commit is contained in:
Vlad Dobromyslov 2022-03-03 02:18:03 +03:00
parent ddf85dcb2a
commit ba9952aa28
2 changed files with 3 additions and 2 deletions

View file

@ -15,7 +15,7 @@ namespace fc
{ {
string endpoint = "127.0.0.1:12201"; 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) 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); gelf_appender(const variant& args);

View file

@ -168,7 +168,8 @@ namespace fc {
filename(p), filename(p),
flush(true), flush(true),
rotate(false), rotate(false),
rotation_compression(false) rotation_compression(false),
max_object_depth(FC_MAX_LOG_OBJECT_DEPTH)
{} {}
file_appender::file_appender( const variant& args ) : file_appender::file_appender( const variant& args ) :