diff --git a/services/lib/src/GlobalTools.cpp b/services/lib/src/GlobalTools.cpp --- a/services/lib/src/GlobalTools.cpp +++ b/services/lib/src/GlobalTools.cpp @@ -58,14 +58,7 @@ } void InitLogging(const std::string &programName) { - FLAGS_logtostderr = true; - FLAGS_colorlogtostderr = true; - if (comm::network::tools::isSandbox()) { - // Log levels INFO, WARNING, ERROR, FATAL are 0, 1, 2, 3, respectively - FLAGS_minloglevel = 0; - } else { - FLAGS_minloglevel = 1; - } + FLAGS_log_dir = std::string("/logs"); google::InitGoogleLogging(programName.c_str()); }