Skip to content

Commit

Permalink
Fix stats log print to console when we start process. (#4550)
Browse files Browse the repository at this point in the history
we before setLogging, init our stats, when we adjust high level verbose
log. it will be output logs to console.

Co-authored-by: Sophie <[email protected]>
  • Loading branch information
Milittle and Sophie-Xie authored Aug 22, 2022
1 parent 2a9c850 commit 403aaa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/daemons/MetaDaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ int main(int argc, char* argv[]) {
return EXIT_FAILURE;
}

// Init stats
nebula::initMetaStats();

folly::init(&argc, &argv, true);
if (FLAGS_enable_ssl || FLAGS_enable_meta_ssl) {
folly::ssl::init();
Expand All @@ -108,6 +105,9 @@ int main(int argc, char* argv[]) {
return EXIT_FAILURE;
}

// Init stats
nebula::initMetaStats();

if (FLAGS_daemonize) {
status = ProcessUtils::daemonize(pidPath);
if (!status.ok()) {
Expand Down
6 changes: 3 additions & 3 deletions src/daemons/StorageDaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}

// Init stats
nebula::initStorageStats();

folly::init(&argc, &argv, true);
if (FLAGS_enable_ssl || FLAGS_enable_meta_ssl) {
folly::ssl::init();
Expand All @@ -96,6 +93,9 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}

// Init stats
nebula::initStorageStats();

if (FLAGS_daemonize) {
status = ProcessUtils::daemonize(pidPath);
if (!status.ok()) {
Expand Down

0 comments on commit 403aaa4

Please sign in to comment.