Skip to content

Commit

Permalink
add logs separator (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamadazmy authored Nov 28, 2023
1 parent 0527c73 commit 367cc28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/manager/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ impl ProcessManager {
.into_inner();

if let Log::Ring(prefix) = log {
let _ = self
.ring
.push(format!("[-] {}: ------------ [start] ------------", prefix))
.await;

if let Some(out) = child.stdout.take() {
let out = File::from_std(unsafe { StdFile::from_raw_fd(out.into_raw_fd()) });
self.sink(out, format!("[+] {}", prefix))
Expand Down

0 comments on commit 367cc28

Please sign in to comment.