Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jun 28, 2023
1 parent cb9b005 commit 151b5a0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion server/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ require (
github.com/paulmach/go.geojson v1.4.0
github.com/pkg/errors v0.9.1
github.com/ravilushqa/otelgqlgen v0.8.0
github.com/reearth/reearthx v0.0.0-20230628100740-772ae55edde1
github.com/reearth/reearthx v0.0.0-20230628105450-fa673eee6505
github.com/samber/lo v1.27.0
github.com/spf13/afero v1.9.3
github.com/square/mongo-lock v0.0.0-20201208161834-4db518ed7fb2
Expand Down
4 changes: 2 additions & 2 deletions server/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/ravilushqa/otelgqlgen v0.8.0 h1:x48k+D1GMgm87xhMO2Lekrr9YGzFbpG3yijn9GpxuAY=
github.com/ravilushqa/otelgqlgen v0.8.0/go.mod h1:6JO5YO2iY4POC7R6yB/L/RKXCcyISL8qQt5NnHOhh0o=
github.com/reearth/reearthx v0.0.0-20230628100740-772ae55edde1 h1:jt73WlNFZQ8m7tvhyOyVcLLmtlEr+a8g3ZzGU1aLqwg=
github.com/reearth/reearthx v0.0.0-20230628100740-772ae55edde1/go.mod h1:O4zFr6ks8jDKfgy9NBpZKp31jpmAPnfOtMQK9B6xX54=
github.com/reearth/reearthx v0.0.0-20230628105450-fa673eee6505 h1:lTPbUsI7F1W5drXgWhPkSYRprC2j5xS/Fq2c2d+eIys=
github.com/reearth/reearthx v0.0.0-20230628105450-fa673eee6505/go.mod h1:O4zFr6ks8jDKfgy9NBpZKp31jpmAPnfOtMQK9B6xX54=
github.com/robertkrimen/godocdown v0.0.0-20130622164427-0bfa04905481/go.mod h1:C9WhFzY47SzYBIvzFqSvHIR6ROgDo4TtdTuRaOMjF/s=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
Expand Down
2 changes: 1 addition & 1 deletion server/internal/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func NewServer(ctx context.Context, cfg *ServerConfig) *WebServer {
}

func (w *WebServer) Run() {
defer log.Info("Server shutdown")
defer log.Infof("Server shutdown")

debugLog := ""
if w.appServer.Debug {
Expand Down
2 changes: 1 addition & 1 deletion server/internal/app/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func initFile(ctx context.Context, conf *config.Config) (fileRepo gateway.File)
return
}

log.Info("file: local storage is used")
log.Infof("file: local storage is used")
afs := afero.NewBasePathFs(afero.NewOsFs(), "data")
fileRepo, err = fs.NewFile(afs, conf.AssetBaseURL)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion server/internal/app/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (w *WebHandler) Handler(e *echo.Echo) {
return
}

e.Logger.Info("web: web directory will be delivered\n")
log.Infof("web: web directory will be delivered")

cfg := map[string]any{}
if w.AuthConfig != nil {
Expand Down

0 comments on commit 151b5a0

Please sign in to comment.