Move entirely to zerolog (#426)

Completely switch to zerolog

(Remove usage of logrus and std logger)

Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
John Olheiser
2021-10-12 02:25:13 -05:00
committed by GitHub
parent 9c85c8fd68
commit 4276a04f0c
160 changed files with 4982 additions and 397 deletions

View File

@@ -18,9 +18,9 @@ import (
"fmt"
"strings"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/google/go-github/v39/github"
"github.com/woodpecker-ci/woodpecker/server/model"
)
const defaultBranch = "master"

View File

@@ -17,10 +17,10 @@ package github
import (
"testing"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/franela/goblin"
"github.com/google/go-github/v39/github"
"github.com/woodpecker-ci/woodpecker/server/model"
)
func Test_helper(t *testing.T) {

View File

@@ -25,12 +25,12 @@ import (
"strconv"
"strings"
"github.com/google/go-github/v39/github"
"golang.org/x/oauth2"
"github.com/woodpecker-ci/woodpecker/server"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote"
"github.com/google/go-github/v39/github"
"golang.org/x/oauth2"
)
const (

View File

@@ -19,11 +19,11 @@ import (
"net/http/httptest"
"testing"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/github/fixtures"
"github.com/franela/goblin"
"github.com/gin-gonic/gin"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/github/fixtures"
)
func Test_github(t *testing.T) {

View File

@@ -20,6 +20,7 @@ import (
"testing"
"github.com/franela/goblin"
"github.com/woodpecker-ci/woodpecker/server/model"
"github.com/woodpecker-ci/woodpecker/server/remote/github/fixtures"
)