mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-29 20:00:30 +00:00
Use Sirupsen/logrus for logs
This commit is contained in:
parent
578f73c791
commit
042e779e08
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
log "github.com/Sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ func GetBadge(c *gin.Context) {
|
||||||
|
|
||||||
build, err := store.GetBuildLast(c, repo, branch)
|
build, err := store.GetBuildLast(c, repo, branch)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Error(err)
|
||||||
c.String(200, badgeNone)
|
c.String(200, badgeNone)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue