feat: change package for fork

This commit is contained in:
Georg K
2022-03-03 02:08:22 +03:00
parent 68959a741a
commit d4916fc30d
6 changed files with 26 additions and 11 deletions

View File

@@ -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