Set log level to avoid stdout logging

This commit is contained in:
James Carnegie
2023-02-09 13:41:43 +00:00
parent f58c0ad058
commit 292f7ec3cc
2 changed files with 6 additions and 3 deletions

View File

@@ -3,9 +3,13 @@ package main
import (
"dockerfileparse/user/parser/babashka"
"dockerfileparse/user/parser/docker"
"github.com/atomist-skills/go-skill"
"github.com/sirupsen/logrus"
)
func main() {
skill.Log.SetLevel(logrus.ErrorLevel)
for {
message, err := babashka.ReadMessage()
if err != nil {
@@ -28,4 +32,3 @@ func main() {
babashka.WriteInvokeResponse(message, res)
}
}