Merge pull request #11055 from zhongwencool/tls-gc-warning-log-0615

fix: tls_certfile_gc notice log don't print abspath
This commit is contained in:
zhongwencool 2023-06-15 17:51:14 +08:00 committed by GitHub
commit d075aff0ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -227,8 +227,11 @@ find_managed_files(Filter, Dir) ->
false -> false ->
Acc Acc
end; end;
(AbsPath, {error, enoent}, Acc) when AbsPath == Dir ->
Acc;
(AbsPath, {error, Reason}, Acc) -> (AbsPath, {error, Reason}, Acc) ->
?SLOG(notice, "filesystem_object_inaccessible", #{ ?SLOG(notice, #{
msg => "filesystem_object_inaccessible",
abspath => AbsPath, abspath => AbsPath,
reason => Reason reason => Reason
}), }),

2
dev
View File

@ -158,7 +158,7 @@ export EMQX_LOG_DIR="$BASE_DIR/log"
CONFIGS_DIR="$EMQX_DATA_DIR/configs" CONFIGS_DIR="$EMQX_DATA_DIR/configs"
# Use your cookie so your IDE can connect to it. # Use your cookie so your IDE can connect to it.
COOKIE="${EMQX_NODE__COOKIE:-${EMQX_NODE_COOKIE:-$(cat ~/.erlang.cookie || echo 'emqxsecretcookie')}}" COOKIE="${EMQX_NODE__COOKIE:-${EMQX_NODE_COOKIE:-$(cat ~/.erlang.cookie || echo 'emqxsecretcookie')}}"
mkdir -p "$EMQX_ETC_DIR" "$EMQX_DATA_DIR/patches" "$EMQX_LOG_DIR" "$CONFIGS_DIR" mkdir -p "$EMQX_ETC_DIR" "$EMQX_DATA_DIR/patches" "$EMQX_DATA_DIR/certs" "$EMQX_LOG_DIR" "$CONFIGS_DIR"
if [ $EKKA_EPMD -eq 1 ]; then if [ $EKKA_EPMD -eq 1 ]; then
EPMD_ARGS='-start_epmd false -epmd_module ekka_epmd' EPMD_ARGS='-start_epmd false -epmd_module ekka_epmd'
else else