feat: change package for fork
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
"time"
|
||||
"unicode"
|
||||
|
||||
"github.com/bilus/gomodproxy/pkg/api"
|
||||
"gitlab.connectone.pro/github/gomodproxy/pkg/api"
|
||||
|
||||
"expvar"
|
||||
_ "net/http/pprof"
|
||||
@@ -103,7 +103,7 @@ func main() {
|
||||
verbose := flag.Bool("v", false, "verbose logging")
|
||||
prometheus := flag.String("prometheus", "", "prometheus address")
|
||||
debug := flag.Bool("debug", false, "enable debug HTTP API (pprof/expvar)")
|
||||
json := flag.Bool("json", false, "json structured logging")
|
||||
useJsonLog := flag.Bool("json", false, "json structured logging")
|
||||
dir := flag.String("dir", filepath.Join(os.Getenv("HOME"), ".gomodproxy/cache"), "modules cache directory")
|
||||
gitdir := flag.String("gitdir", filepath.Join(os.Getenv("HOME"), ".gomodproxy/git"), "git cache directory")
|
||||
memLimit := flag.Int64("mem", 256, "in-memory cache size in MB")
|
||||
@@ -123,8 +123,8 @@ func main() {
|
||||
|
||||
options := []api.Option{}
|
||||
logger := func(...interface{}) {}
|
||||
if *verbose || *json {
|
||||
if *json {
|
||||
if *verbose || *useJsonLog {
|
||||
if *useJsonLog {
|
||||
logger = jsonLog
|
||||
} else {
|
||||
logger = prettyLog
|
||||
|
||||
Reference in New Issue
Block a user