Skip to content

Commit 091b741

Browse files
committed
Update to use tracing macros
1 parent b637cfa commit 091b741

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/lib/src/fs/server.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ pub fn dir_root(path: impl AsRef<Path>)
255255
if !path.is_dir() {
256256
let path = path.display();
257257
error!("FileServer path '{}' is not a directory.", path.primary());
258-
warn_!("Aborting early to prevent inevitable handler error.");
258+
warn!("Aborting early to prevent inevitable handler error.");
259259
panic!("invalid directory: refusing to continue");
260260
}
261261
let path = path.to_path_buf();
@@ -288,7 +288,7 @@ pub fn file_root(path: impl AsRef<Path>)
288288
if !path.exists() {
289289
let path = path.display();
290290
error!("FileServer path '{}' is not a file.", path.primary());
291-
warn_!("Aborting early to prevent inevitable handler error.");
291+
warn!("Aborting early to prevent inevitable handler error.");
292292
panic!("invalid file: refusing to continue");
293293
}
294294
let path = path.to_path_buf();

0 commit comments

Comments
 (0)