diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-26 23:09:32 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-26 23:09:32 +0900 |
| commit | ae1a102882103221ef842176dfd8cb1090d5f591 (patch) | |
| tree | 16f34686bac5564998a9a0e84be96d83ed3e59bd /error.go | |
| parent | 093e99d062f873dc9d83b1f76a156c1ee4275c57 (diff) | |
fmsg: support temporarily withholding output
Trying to print to a shared stdout is a terrible idea. This change makes it possible to withhold output for the lifetime of the sandbox.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'error.go')
| -rw-r--r-- | error.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2,7 +2,6 @@ package main import ( "errors" - "fmt" "git.ophivana.moe/security/fortify/internal/app" "git.ophivana.moe/security/fortify/internal/fmsg" @@ -51,6 +50,6 @@ func logBaseError(err error, message string) { if fmsg.AsBaseError(err, &e) { fmsg.Print(e.Message()) } else { - fmt.Println(message, err) + fmsg.Println(message, err) } } |
