Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quzard committed Jan 14, 2025
1 parent 1f0b31b commit b5ca144
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/app_config/AppConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ void CreateAgentDir() {
}

PROCESSDIRFLAG(conf_dir);
if (STRING_FLAG(log_dir).empty()) {
STRING_FLAG(log_dir) = "log";
}
PROCESSDIRFLAG(log_dir);
PROCESSDIRFLAG(data_dir);
PROCESSDIRFLAG(run_dir);
Expand Down
2 changes: 2 additions & 0 deletions core/common/LogtailCommonFlags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ DEFINE_FLAG_STRING(default_container_host_path, "", "/logtail_host");

// dir
DEFINE_FLAG_STRING(conf_dir, "loongcollector config dir", "conf");
#ifdef __EXCLUDE_SPL__
DEFINE_FLAG_STRING(log_dir, "loongcollector log dir", "log");
#endif
DEFINE_FLAG_STRING(data_dir, "loongcollector data dir", "data");
DEFINE_FLAG_STRING(run_dir, "loongcollector run dir", "run");
DEFINE_FLAG_STRING(third_party_dir, "loongcollector third party dir", "thirdparty");

0 comments on commit b5ca144

Please sign in to comment.