Skip to content

Commit 6b1d8b9

Browse files
committed
fix: made the append_to_file log consistent with other fs operations logs
1 parent ace238a commit 6b1d8b9

File tree

1 file changed

+2
-5
lines changed
  • nerve-core/src/agent/namespaces/filesystem

1 file changed

+2
-5
lines changed

nerve-core/src/agent/namespaces/filesystem/mod.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use std::os::unix::fs::{FileTypeExt, PermissionsExt};
55

66
use async_trait::async_trait;
77
use chrono::{DateTime, Local};
8-
use colored::Colorize;
98
use libc::{S_IRGRP, S_IROTH, S_IRUSR, S_IWGRP, S_IWOTH, S_IWUSR, S_IXGRP, S_IXOTH, S_IXUSR};
109

1110
use anyhow::Result;
@@ -224,10 +223,8 @@ impl Action for AppendToFile {
224223
writeln!(file, "{}", one_line_json)?;
225224

226225
log::info!(
227-
"{}: appended {} bytes to {}",
228-
"filesystem.append_to_file".dimmed(),
229-
one_line_json.len(),
230-
filepath.bold()
226+
"append-to-file '{filepath}' -> {} bytes",
227+
one_line_json.len()
231228
);
232229

233230
Ok(None)

0 commit comments

Comments
 (0)