Commit 145e604 1 parent b8b7195 commit 145e604 Copy full SHA for 145e604
File tree 1 file changed +4
-1
lines changed
src/agent/namespaces/filesystem
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ impl Action for ReadFolder {
105
105
}
106
106
}
107
107
108
+ log:: info!( "read-folder '{folder}' -> {} bytes" , output. len( ) ) ;
109
+
108
110
Ok ( Some ( output) )
109
111
} else {
110
112
Err ( anyhow ! ( "can't read {}: {:?}" , folder, ret) )
@@ -136,8 +138,9 @@ impl Action for ReadFile {
136
138
payload : Option < String > ,
137
139
) -> Result < Option < String > > {
138
140
let filepath = payload. unwrap ( ) ;
139
- let ret = std:: fs:: read_to_string ( filepath) ;
141
+ let ret = std:: fs:: read_to_string ( & filepath) ;
140
142
if let Ok ( contents) = ret {
143
+ log:: info!( "read-file '{filepath}' -> {} bytes" , contents. len( ) ) ;
141
144
Ok ( Some ( contents) )
142
145
} else {
143
146
let err = ret. err ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments