Skip to content

Commit

Permalink
remove Logger property from PIP API; update vendor deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sfomuseumbot committed Dec 16, 2024
1 parent 7c17af1 commit 6d06a82
Show file tree
Hide file tree
Showing 10 changed files with 58 additions and 40 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ require (
github.com/aaronland/go-http-server v1.5.0
github.com/rs/cors v1.11.1
github.com/sfomuseum/go-flags v0.10.0
github.com/sfomuseum/go-http-auth v0.11.0
github.com/sfomuseum/go-http-auth v0.12.0
github.com/sfomuseum/go-timings v1.4.0
github.com/whosonfirst/go-reader v1.0.2
github.com/whosonfirst/go-reader-cachereader v1.1.1
github.com/whosonfirst/go-whosonfirst-iterate/v2 v2.5.0
github.com/whosonfirst/go-whosonfirst-placetypes v0.7.3
github.com/whosonfirst/go-whosonfirst-spatial v0.11.0
github.com/whosonfirst/go-whosonfirst-spatial v0.11.1
github.com/whosonfirst/go-whosonfirst-spr-geojson v0.0.8
github.com/whosonfirst/go-whosonfirst-uri v1.3.0
)
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ github.com/sfomuseum/go-edtf v1.2.1 h1:vyKvoNa4p6mmwp9AbbEdJoj+A5YK4G7S1QgmSNpXh
github.com/sfomuseum/go-edtf v1.2.1/go.mod h1:1rP0EJZ/84j3HO80vGcnG2T9MFBDAFyTNtjrr8cv3T4=
github.com/sfomuseum/go-flags v0.10.0 h1:1OC1ACxpWMsl3XQ9OeNVMQj7Zi2CzufP3Rym3mPI8HU=
github.com/sfomuseum/go-flags v0.10.0/go.mod h1:VXOnnX1/yxQpX2yiwHaBV6aCmhtszQOL5bL1/nNo3co=
github.com/sfomuseum/go-http-auth v0.11.0 h1:4p4SynsSVR+s5tc4L3SAQ5nCaf5VD/331sxR9EFmgyE=
github.com/sfomuseum/go-http-auth v0.11.0/go.mod h1:m0I60r/aVlWXia43eoZOp/d0u7M7pURgJEYElvVVe98=
github.com/sfomuseum/go-http-auth v0.12.0 h1:eoWEpjwcZ6IsCtCXaOxUVtVpLIKR5lG9dlHjGHcyDak=
github.com/sfomuseum/go-http-auth v0.12.0/go.mod h1:m0I60r/aVlWXia43eoZOp/d0u7M7pURgJEYElvVVe98=
github.com/sfomuseum/go-http-protomaps v0.3.0 h1:e89s6wsDHyCXDgB6hFARMjsdrgn/lG4BRybRJuXTktY=
github.com/sfomuseum/go-http-protomaps v0.3.0/go.mod h1:K/PDDhy0c3xcPK2Bot7+oIz2l8QQLZys9SqAblhHT6I=
github.com/sfomuseum/go-http-rollup v0.0.3 h1:N3CnjZluhzRhqPpdM+GTuzCnjM0V5xtPX+LeCgZWhTA=
Expand Down Expand Up @@ -303,8 +303,8 @@ github.com/whosonfirst/go-whosonfirst-placetypes v0.7.3 h1:BuKRV3pal5wanOZxWue7h
github.com/whosonfirst/go-whosonfirst-placetypes v0.7.3/go.mod h1:lRvLpHHUPxfrU3c4xCcdmFbU1dYJLpO2WQ1LJWoqYJ8=
github.com/whosonfirst/go-whosonfirst-sources v0.1.0 h1:JuKLa6KWke22jBfJ1pM9WQHoz1/3pbDv2C+aR+THPPQ=
github.com/whosonfirst/go-whosonfirst-sources v0.1.0/go.mod h1:EUMHyGzUmqPPxlMmOp+28BFeoBdxxE0HCKRd67lkqGM=
github.com/whosonfirst/go-whosonfirst-spatial v0.11.0 h1:+ptVNprdT9PuwJmsA4tnrxLmiOnYUHjKzbmXmhUdzKA=
github.com/whosonfirst/go-whosonfirst-spatial v0.11.0/go.mod h1:ja79l9imEriYcWFVX1vbW4eMAf407/GqEQ3q5Fpa/1A=
github.com/whosonfirst/go-whosonfirst-spatial v0.11.1 h1:EUYDE5I6ojL+70VL+B3unmCE3ehb0E/cHkf+mql45QE=
github.com/whosonfirst/go-whosonfirst-spatial v0.11.1/go.mod h1:ja79l9imEriYcWFVX1vbW4eMAf407/GqEQ3q5Fpa/1A=
github.com/whosonfirst/go-whosonfirst-spr-geojson v0.0.8 h1:K0rCaKo0xvOtuS/x9r62bEfIK3OTdZqbDmgG+A3xDSs=
github.com/whosonfirst/go-whosonfirst-spr-geojson v0.0.8/go.mod h1:Nh7PwBMDT1kUrp9jBMFw+Ilue6up1tz2KhE39btS/ZU=
github.com/whosonfirst/go-whosonfirst-spr/v2 v2.3.7 h1:1j4IMuVua4/NhqKm2ke16h2V5Z2XiLoOdXbjDrfZb0E=
Expand Down
5 changes: 2 additions & 3 deletions http/api/pip.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package api

import (
"encoding/json"
"log"
"log/slog"
"net/http"

"github.com/aaronland/go-http-sanitize"
Expand All @@ -25,7 +25,6 @@ const GEOJSON string = "application/geo+json"

type PointInPolygonHandlerOptions struct {
EnableGeoJSON bool
Logger *log.Logger
LogTimings bool
}

Expand Down Expand Up @@ -54,7 +53,7 @@ func PointInPolygonHandler(app *spatial_app.SpatialApplication, opts *PointInPol
if opts.LogTimings {

for _, t := range app.Timings {
opts.Logger.Println(t)
slog.Debug("Timings", "timing", t)
}
}
}()
Expand Down
20 changes: 10 additions & 10 deletions vendor/github.com/sfomuseum/go-http-auth/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 32 additions & 4 deletions vendor/github.com/sfomuseum/go-http-auth/account.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/sfomuseum/go-http-auth/auth.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions vendor/github.com/sfomuseum/go-http-auth/none.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions vendor/github.com/sfomuseum/go-http-auth/null.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions vendor/github.com/sfomuseum/go-http-auth/shared_secret.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ github.com/sfomuseum/go-edtf/tests
## explicit; go 1.16
github.com/sfomuseum/go-flags/flagset
github.com/sfomuseum/go-flags/multi
# github.com/sfomuseum/go-http-auth v0.11.0
# github.com/sfomuseum/go-http-auth v0.12.0
## explicit; go 1.18
github.com/sfomuseum/go-http-auth
# github.com/sfomuseum/go-http-protomaps v0.3.0
Expand Down Expand Up @@ -457,7 +457,7 @@ github.com/whosonfirst/go-whosonfirst-placetypes
## explicit; go 1.12
github.com/whosonfirst/go-whosonfirst-sources
github.com/whosonfirst/go-whosonfirst-sources/sources
# github.com/whosonfirst/go-whosonfirst-spatial v0.11.0
# github.com/whosonfirst/go-whosonfirst-spatial v0.11.1
## explicit; go 1.23
github.com/whosonfirst/go-whosonfirst-spatial
github.com/whosonfirst/go-whosonfirst-spatial/application
Expand Down

0 comments on commit 6d06a82

Please sign in to comment.