Skip to content

Commit 3afea69

Browse files
authored
Merge pull request #10743 from aduffeck/unifi-logging
Unifi logging
2 parents 1d2a868 + 24907d7 commit 3afea69

File tree

20 files changed

+149
-56
lines changed

20 files changed

+149
-56
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Bugfix: Unifi logging
2+
3+
We fixed some cases where we did not use the correct logger.
4+
5+
https://github.com/owncloud/ocis/pull/10743/

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/cenkalti/backoff v2.2.1+incompatible
1818
github.com/coreos/go-oidc/v3 v3.11.0
1919
github.com/cs3org/go-cs3apis v0.0.0-20241105092511-3ad35d174fc1
20-
github.com/cs3org/reva/v2 v2.26.8
20+
github.com/cs3org/reva/v2 v2.26.9-0.20241211090933-830f2a7e3cff
2121
github.com/davidbyttow/govips/v2 v2.15.0
2222
github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8
2323
github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,10 @@ github.com/crewjam/saml v0.4.14 h1:g9FBNx62osKusnFzs3QTN5L9CVA/Egfgm+stJShzw/c=
255255
github.com/crewjam/saml v0.4.14/go.mod h1:UVSZCf18jJkk6GpWNVqcyQJMD5HsRugBPf4I1nl2mME=
256256
github.com/cs3org/go-cs3apis v0.0.0-20241105092511-3ad35d174fc1 h1:RU6LT6mkD16xZs011+8foU7T3LrPvTTSWeTQ9OgfhkA=
257257
github.com/cs3org/go-cs3apis v0.0.0-20241105092511-3ad35d174fc1/go.mod h1:DedpcqXl193qF/08Y04IO0PpxyyMu8+GrkD6kWK2MEQ=
258-
github.com/cs3org/reva/v2 v2.26.8 h1:MTqEPfyYxtwgew1Yo35MasfFkI8afTIHSTr+mwX9Gh0=
259-
github.com/cs3org/reva/v2 v2.26.8/go.mod h1:fJWmn7EkttWOWphZfiKdFOcHuthcUsU55aSN1VeTOhU=
258+
github.com/cs3org/reva/v2 v2.26.8-0.20241203081301-17f339546533 h1:QshDjljk44ASolJwlHxE9e7u+Slgdi/VfPKYvbfFu2g=
259+
github.com/cs3org/reva/v2 v2.26.8-0.20241203081301-17f339546533/go.mod h1:fJWmn7EkttWOWphZfiKdFOcHuthcUsU55aSN1VeTOhU=
260+
github.com/cs3org/reva/v2 v2.26.9-0.20241211090933-830f2a7e3cff h1:B/mzU2NOgpukrpBQ9exVFfkFam/56QFVt2d1BNSK3dI=
261+
github.com/cs3org/reva/v2 v2.26.9-0.20241211090933-830f2a7e3cff/go.mod h1:fJWmn7EkttWOWphZfiKdFOcHuthcUsU55aSN1VeTOhU=
260262
github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4=
261263
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
262264
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=

ocis/pkg/command/decomposedfs.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"github.com/cs3org/reva/v2/pkg/store"
2525
"github.com/owncloud/ocis/v2/ocis-pkg/config"
2626
"github.com/owncloud/ocis/v2/ocis/pkg/register"
27+
"github.com/rs/zerolog"
2728
"github.com/urfave/cli/v2"
2829
)
2930

@@ -96,7 +97,7 @@ func check(c *cli.Context) error {
9697
return err
9798
}
9899

99-
tree := tree.New(lu, bs, o, store.Create())
100+
tree := tree.New(lu, bs, o, store.Create(), &zerolog.Logger{})
100101

101102
nId := c.String("node")
102103
n, err := lu.NodeFromSpaceID(context.Background(), nId)

services/proxy/pkg/proxy/proxy.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"crypto/tls"
55
"crypto/x509"
66
"errors"
7+
stdlog "log"
78
"net"
89
"net/http"
910
"net/http/httputil"
@@ -32,6 +33,9 @@ func NewMultiHostReverseProxy(opts ...Option) (*MultiHostReverseProxy, error) {
3233
options := newOptions(opts...)
3334

3435
rp := &MultiHostReverseProxy{
36+
ReverseProxy: httputil.ReverseProxy{
37+
ErrorLog: stdlog.New(options.Logger, "", 0),
38+
},
3539
Directors: make(map[string]map[config.RouteType]map[string]map[string]func(req *http.Request)),
3640
logger: options.Logger,
3741
config: options.Config,

vendor/github.com/cs3org/reva/v2/internal/grpc/interceptors/eventsmiddleware/conversion.go

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cs3org/reva/v2/internal/grpc/interceptors/eventsmiddleware/events.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cs3org/reva/v2/internal/grpc/services/gateway/ocmshareprovider.go

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cs3org/reva/v2/pkg/events/ocmcore.go

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cs3org/reva/v2/pkg/logger/logger.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)