Skip to content

Commit

Permalink
add more log
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Nov 13, 2023
1 parent 9c78080 commit 1a26f93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/calaos/calaos-container/apt"
"github.com/calaos/calaos-container/config"
"github.com/calaos/calaos-container/models/structs"
"github.com/sirupsen/logrus"
)

func checkForUpdatesLoop() {
Expand Down Expand Up @@ -246,6 +247,9 @@ func Upgrade(pkg string) error {
}

if !found {
logging.WithFields(logrus.Fields{
"pkg": pkg,
}).Errorln("Package not found")
return fmt.Errorf("package not found")
}

Expand Down

0 comments on commit 1a26f93

Please sign in to comment.