Merge pull request #83 from bitshares/log-obj-depth

Initialize max_object_depth in appender config
This commit is contained in:
Abit 2018-10-19 22:11:20 +02:00 committed by GitHub
commit a1d84f22c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View file

@ -18,7 +18,7 @@ class file_appender : public appender {
bool rotate = false; bool rotate = false;
microseconds rotation_interval; microseconds rotation_interval;
microseconds rotation_limit; 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( const variant& args );
~file_appender(); ~file_appender();

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

@ -144,9 +144,7 @@ namespace fc {
file_appender::file_appender( const variant& args ) : file_appender::file_appender( const variant& args ) :
my( new impl( args.as<config>( FC_MAX_LOG_OBJECT_DEPTH ) ) ) my( new impl( args.as<config>( FC_MAX_LOG_OBJECT_DEPTH ) ) )
{ {}
}
file_appender::~file_appender(){} file_appender::~file_appender(){}