diff --git a/curvefs/src/client/curve_fuse_op.cpp b/curvefs/src/client/curve_fuse_op.cpp index 31a484dc1d..d5d92d1924 100644 --- a/curvefs/src/client/curve_fuse_op.cpp +++ b/curvefs/src/client/curve_fuse_op.cpp @@ -152,7 +152,7 @@ int InitLog(const char *confPath, const char *argv0) { FLAGS_vlog_level = FLAGS_v; // initialize logging module - FLAGS_stderrthreshold = 3; + // FLAGS_stderrthreshold = 3; google::InitGoogleLogging(argv0); bool succ = InitAccessLog(FLAGS_log_dir); diff --git a/curvefs/src/mds/main.cpp b/curvefs/src/mds/main.cpp index 259d4c2f91..45bb6a1c54 100644 --- a/curvefs/src/mds/main.cpp +++ b/curvefs/src/mds/main.cpp @@ -64,7 +64,7 @@ int main(int argc, char **argv) { } // initialize logging module - FLAGS_stderrthreshold = 3; + // FLAGS_stderrthreshold = 3; google::InitGoogleLogging(argv[0]); conf->PrintConfig(); diff --git a/curvefs/src/metaserver/main.cpp b/curvefs/src/metaserver/main.cpp index bac358ff69..50958d91f1 100644 --- a/curvefs/src/metaserver/main.cpp +++ b/curvefs/src/metaserver/main.cpp @@ -126,7 +126,7 @@ int main(int argc, char **argv) { FLAGS_vlog_level = FLAGS_v; // initialize logging module - FLAGS_stderrthreshold = 3; + // FLAGS_stderrthreshold = 3; google::InitGoogleLogging(argv[0]); conf->PrintConfig(); diff --git a/nebd/src/part2/main.cpp b/nebd/src/part2/main.cpp index 2f892e13a4..07183b68cb 100644 --- a/nebd/src/part2/main.cpp +++ b/nebd/src/part2/main.cpp @@ -30,7 +30,7 @@ DEFINE_string(confPath, "/etc/nebd/nebd-server.conf", "nebd server conf path"); int main(int argc, char* argv[]) { // 解析参数 google::ParseCommandLineFlags(&argc, &argv, false); - FLAGS_stderrthreshold = 3; + // FLAGS_stderrthreshold = 3; google::InitGoogleLogging(argv[0]); std::string confPath = FLAGS_confPath.c_str(); diff --git a/src/chunkserver/chunkserver.cpp b/src/chunkserver/chunkserver.cpp index bf310c3134..71391fe364 100644 --- a/src/chunkserver/chunkserver.cpp +++ b/src/chunkserver/chunkserver.cpp @@ -105,7 +105,7 @@ int ChunkServer::Run(int argc, char** argv) { LoadConfigFromCmdline(&conf); // 初始化日志模块 - FLAGS_stderrthreshold = 3; + // FLAGS_stderrthreshold = 3; google::InitGoogleLogging(argv[0]); // 打印参数 diff --git a/src/mds/main/main.cpp b/src/mds/main/main.cpp index d8ffc9654a..d4cec3a49a 100644 --- a/src/mds/main/main.cpp +++ b/src/mds/main/main.cpp @@ -107,7 +107,7 @@ int main(int argc, char **argv) { } // initialize logging module - FLAGS_stderrthreshold = 3; + // FLAGS_stderrthreshold = 3; google::InitGoogleLogging(argv[0]); // reset SIGPIPE handler diff --git a/src/snapshotcloneserver/main.cpp b/src/snapshotcloneserver/main.cpp index fb70134bb4..4029cdb8ed 100644 --- a/src/snapshotcloneserver/main.cpp +++ b/src/snapshotcloneserver/main.cpp @@ -80,7 +80,7 @@ int main(int argc, char **argv) { LoadConfigFromCmdline(conf.get()); conf->PrintConfig(); conf->ExposeMetric("snapshot_clone_server_config"); - FLAGS_stderrthreshold = 3; + // FLAGS_stderrthreshold = 3; google::InitGoogleLogging(argv[0]); snapshotcloneserver_main(conf); }