verify-data-dir: change level for untracked files

Untracked files are not necessarily an error so log at warning level
instead.
This commit is contained in:
Reynir Björnsson 2021-09-14 16:03:12 +02:00
parent 70e240e7b0
commit 4a42cffc6c

View file

@ -293,7 +293,7 @@ let verify_data_dir () datadir =
in in
let files_untracked = FpathSet.diff files_in_filesystem !files_tracked in let files_untracked = FpathSet.diff files_in_filesystem !files_tracked in
FpathSet.iter (fun f -> FpathSet.iter (fun f ->
Logs.err (fun m -> m "untracked file in filesystem: %a" Fpath.pp f)) Logs.warn (fun m -> m "untracked file in filesystem: %a" Fpath.pp f))
files_untracked; files_untracked;
or_die 1 r or_die 1 r