Skip to content

Commit

Permalink
Minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Molter73 committed Sep 26, 2024
1 parent 95c0975 commit 68be116
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions collector/lib/CollectorConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void CollectorConfig::HandleAfterglowEnvVars() {
afterglow_period_micros_ = static_cast<uint64_t>(afterglow_period.value() * SECOND);

if (afterglow_period_micros_ < 0) {
CLOG(ERROR) << "Invalid afterglow period " << afterglow_period_micros_ / 1000000 << ". ROX_AFTERGLOW_PERIOD must be positive.";
CLOG(ERROR) << "Invalid afterglow period " << afterglow_period_micros_ / SECOND << ". ROX_AFTERGLOW_PERIOD must be positive.";
} else if (afterglow_period_micros_ == 0) {
CLOG(ERROR) << "Afterglow period set to 0.";
} else {
Expand All @@ -299,11 +299,7 @@ void CollectorConfig::HandleAfterglowEnvVars() {
enable_afterglow_ = enable_afterglow.value();
}

if (enable_afterglow_) {
CLOG(INFO) << "Afterglow is enabled";
} else {
CLOG(INFO) << "Afterglow is disabled";
}
CLOG(INFO) << "Afterglow is " << (enable_afterglow_ ? "enabled" : "disabled");
}

void CollectorConfig::HandleConnectionStatsEnvVars() {
Expand Down

0 comments on commit 68be116

Please sign in to comment.