Allow to set verbosity of output (Closes #26)

This commit is contained in:
2025-01-28 21:02:12 +01:00
parent 2bdcdcb1dd
commit cced4f04b2
14 changed files with 89 additions and 33 deletions

View File

@ -2,7 +2,6 @@ package export
import (
"encoding/json"
"log"
)
// Render JSON output.
@ -27,8 +26,8 @@ func (export *Export) renderJSON() (render string) {
}
renderBytes, err := json.Marshal(solutions)
if err != nil {
log.Println("ERROR: json.Marshal error:", err)
log.Println("Printing solution as-is:", solutions)
export.Controller.Outputter.Println("ERROR: json.Marshal error:", err)
export.Controller.Outputter.Println("Printing solution as-is:", solutions)
return ""
}
render = string(renderBytes)