internal/worker: Use logrus for logging

This commit is contained in:
Diaa Sami 2021-12-06 18:55:32 +01:00 committed by Tom Gundersen
parent 510d2ccac0
commit b599245284
6 changed files with 56 additions and 53 deletions

View file

@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
"log"
"net/http"
"os"
"path"
@ -12,6 +11,7 @@ import (
"github.com/google/uuid"
"github.com/osbuild/osbuild-composer/internal/rpmmd"
"github.com/osbuild/osbuild-composer/internal/upload/koji"
"github.com/sirupsen/logrus"
)
func main() {
@ -50,7 +50,7 @@ func main() {
defer func() {
err := k.Logout()
if err != nil {
log.Print("logging out of koji failed ", err)
logrus.Warn("logging out of koji failed ", err)
}
}()