~rootmos/go-pkg-proxy

ba883d2247e5f02118c52c537f19b22b5d6b0013 — Gustav Behm 5 months ago f1494d7 master
Bump logging version
3 files changed, 11 insertions(+), 10 deletions(-)

M go.mod
M go.sum
M main.go
M go.mod => go.mod +2 -2
@@ 3,8 3,8 @@ module rootmos.io/go-pkg-proxy
go 1.21.5

require (
	rootmos.io/go-utils/logging v0.1.0
	rootmos.io/go-utils/osext v0.1.0
	rootmos.io/go-utils/logging v0.2.1
	rootmos.io/go-utils/osext v0.1.2
)

require (

M go.sum => go.sum +4 -4
@@ 38,7 38,7 @@ github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
rootmos.io/go-utils/hashed v0.1.0 h1:cRJMkxKO0La1b6dc3FDCpBkfZAwmaWGKHFOqvGaoT/A=
rootmos.io/go-utils/hashed v0.1.0/go.mod h1:Z7uQqsqIUhbTW+VkLOVIzjMueTB2+LjPAFKoN5269lM=
rootmos.io/go-utils/logging v0.1.0 h1:VKxw+MVeFvftBnvniLkNwU8pCRCx9qSKpYlBBZvK9Yc=
rootmos.io/go-utils/logging v0.1.0/go.mod h1:C9gOvKJZDcHdzRRmoLp2LKzqDzG0GNyQ6lr6+AkNMK8=
rootmos.io/go-utils/osext v0.1.0 h1:dmVnxlc/XMJyNmoo43h8j8YaBosxEeUgjJ4TKcD8EG0=
rootmos.io/go-utils/osext v0.1.0/go.mod h1:5eV4xEHgcSPbONSlg41kivPbAeYDSJvkyC/5jLTVScg=
rootmos.io/go-utils/logging v0.2.1 h1:dFcKOKz0Ro6xoywhPzfqXRVeTfjdig+aCKYz/R8ttbA=
rootmos.io/go-utils/logging v0.2.1/go.mod h1:C9gOvKJZDcHdzRRmoLp2LKzqDzG0GNyQ6lr6+AkNMK8=
rootmos.io/go-utils/osext v0.1.2 h1:2GS3VoTbZ3JbsI6qzzbj0675VNMZV0AVTcKJwp9UueQ=
rootmos.io/go-utils/osext v0.1.2/go.mod h1:3cmT+OFUk23zWLRxchl8tRlAwKq7SRyvQHPzHfuwzSI=

M main.go => main.go +5 -4
@@ 1,7 1,6 @@
package main

import (
	"log"
	"net/http"
	"flag"
	"fmt"


@@ 63,7 62,7 @@ func main() {

	logger, closer, err := logConfig.SetupDefaultLogger()
	if err != nil {
		log.Fatal(err)
		logger.Exit(1, "unable to configure logger: %v", err)
	}
	defer closer()
	logger.Debug("hello")


@@ 73,7 72,7 @@ func main() {

		_, err := FetchModules(ctx, *modulesURL)
		if err != nil {
			log.Fatal(err)
			logger.Exit(1, "unable to fetch modules: %v", err)
		}
		return
	}


@@ 118,5 117,7 @@ func main() {
	})

	logger.Info("listening", "addr", *addr)
	log.Fatal(http.ListenAndServe(*addr, nil))
	if err := http.ListenAndServe(*addr, nil); err != nil {
		logger.Exit(1, "serving failed: %v", err)
	}
}