diff --git a/proxy/logging/Log.cc b/proxy/logging/Log.cc index bad3349d3b0..e4abd7ff58e 100644 --- a/proxy/logging/Log.cc +++ b/proxy/logging/Log.cc @@ -58,9 +58,7 @@ // Log global objects inkcoreapi LogObject *Log::error_log = nullptr; LogFieldList Log::global_field_list; -LogFormat *Log::global_scrap_format = nullptr; -LogObject *Log::global_scrap_object = nullptr; -Log::LoggingMode Log::logging_mode = LOG_MODE_NONE; +Log::LoggingMode Log::logging_mode = LOG_MODE_NONE; // Flush thread stuff EventNotify *Log::preproc_notify; @@ -241,18 +239,12 @@ Log::periodic_tasks(long time_now) if (error_log) { error_log->roll_files(time_now); } - if (global_scrap_object) { - global_scrap_object->roll_files(time_now); - } Log::config->log_object_manager.roll_files(time_now); Log::config->roll_log_files_now = false; } else { if (error_log) { error_log->roll_files(time_now); } - if (global_scrap_object) { - global_scrap_object->roll_files(time_now); - } Log::config->log_object_manager.roll_files(time_now); } if (log_rotate_signal_received) { @@ -1085,14 +1077,6 @@ Log::init_when_enabled() } LogConfig::register_mgmt_callbacks(); - // setup global scrap object - // - global_scrap_format = MakeTextLogFormat(); - global_scrap_object = - new LogObject(Log::config, global_scrap_format, Log::config->logfile_dir, "scrapfile.log", LOG_FILE_BINARY, nullptr, - Log::config->rolling_enabled, Log::config->preproc_threads, Log::config->rolling_interval_sec, - Log::config->rolling_offset_hr, Log::config->rolling_size_mb, - /* auto create */ false, Log::config->rolling_max_count, Log::config->rolling_min_count); // create the flush thread create_threads(); diff --git a/proxy/logging/Log.h b/proxy/logging/Log.h index e0b502b7467..41ce8652fce 100644 --- a/proxy/logging/Log.h +++ b/proxy/logging/Log.h @@ -190,8 +190,6 @@ class Log static LogConfig *config; static LogFieldList global_field_list; static std::unordered_map field_symbol_hash; - static LogFormat *global_scrap_format; - static LogObject *global_scrap_object; static LoggingMode logging_mode; // logging thread stuff