From ae1a102882103221ef842176dfd8cb1090d5f591 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sat, 26 Oct 2024 23:09:32 +0900 Subject: 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 --- error.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'error.go') diff --git a/error.go b/error.go index 112427a5..18f50027 100644 --- a/error.go +++ b/error.go @@ -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) } } -- cgit v1.3.1