Skip to content

Commit 8028fa0

Browse files
committed
apps: log viewmode in the returning app URL message
1 parent 4830814 commit 8028fa0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

changelog/unreleased/fix-app-log.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Enhancement: log viewmode in the returning app URL message
2+
3+
https://github.com/cs3org/reva/pull/5080

internal/http/services/appprovider/appprovider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ func (s *svc) handleOpen(w http.ResponseWriter, r *http.Request) {
435435
}
436436

437437
log := appctx.GetLogger(ctx)
438-
log.Info().Interface("resource", fileRef).Str("url", openRes.AppUrl.AppUrl).Str("method", openRes.AppUrl.Method).Interface("target", openRes.AppUrl.Target).Msg("returning app URL for file")
438+
log.Info().Interface("resource", fileRef).Str("url", openRes.AppUrl.AppUrl).Str("method", openRes.AppUrl.Method).Interface("viewMode", viewMode).Msg("returning app URL for file")
439439

440440
w.Header().Set("Content-Type", "application/json")
441441
if _, err = w.Write(js); err != nil {

0 commit comments

Comments
 (0)