Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Option to log HTTP requests and responses #7873

Closed
michaelstingl opened this issue May 23, 2020 · 0 comments
Closed

[FR] Option to log HTTP requests and responses #7873

michaelstingl opened this issue May 23, 2020 · 0 comments
Assignees
Milestone

Comments

@michaelstingl
Copy link
Contributor

HTTP requests and responses, with header information etc are difficult to read in the desktop client logs. I'd propose an additional log option to add HTTP requests and responses to the logs (--loghttp?)

This is an example from the iOS app:

Simulator Screen Shot - iPhone 8 - 2020-05-24 at 00 20 08

2020-05-24 00:11:35.154000+0200 ownCloud[5199:268631] ⚪️ | [CORE, ItemList] Task root item: <OCItem: 0x7f98488d06f0, type: 1, name: /, path: /, size: 6784009 bytes, MIME-Type: (null), Last modified: 2020-05-23 22:06:02 +0000, Last used: (null) fileID: 00000006ochmeadiry1s, eTag: "5ec99e4a0d647", parentID: (null), localID: 056453BE1E0641288B31B828CE24F802, parentLocalID: (null), shareable, owner: <OCUser: 0x7f984e6c8070, userName: test, displayName: test>>, include root item: 0 [OCCore+ItemList.m:985|FULL]
2020-05-24 00:11:35.155000+0200 ownCloud[5199:268631] ⚪️ | [APP] Push fallback summary ownCloud.ProgressSummary [ProgressSummarizer.swift:261|FULL]
2020-05-24 00:11:35.155000+0200 ownCloud[5199:268631] ⚪️ | [APP] Pop fallback summary ownCloud.ProgressSummary [ProgressSummarizer.swift:273|FULL]
2020-05-24 00:11:35.156000+0200 ownCloud[5199:268631] ⚪️ | [CORE] Ended activity 'item list task - update queries' .. [OCCore.m:1699|FULL]
2020-05-24 00:11:35.157000+0200 ownCloud[5199:243699] ⚪️ | [HTTP, Local, …] saved request for taskIdentifier <15>, URL: <NSMutableURLRequest: 0x7f984e374d00> { URL: https://demo.owncloud.org/remote.php/dav/files/test/ }, 0x7f984e542c80 [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:984|FULL]
2020-05-24 00:11:35.158000+0200 ownCloud[5199:243699] ⚪️ | [HTTP, Local, …] resuming request for taskIdentifier <15>, URL: <NSMutableURLRequest: 0x7f984e374d00> { URL: https://demo.owncloud.org/remote.php/dav/files/test/ }, 0x7f984e542c80 [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:1055|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┓ [HTTP, Request, …] Sending request: [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [info] # REQUEST --------------------------------------------------------- [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [info] URL:   https://demo.owncloud.org/remote.php/dav/files/test/ [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [info] Error: - [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [info] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header] PROPFIND /remote.php/dav/files/test HTTP/1.1 [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header] Host: demo.owncloud.org [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header] Content-Length: 339 [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header] User-Agent: ownCloudApp/11.4 (App/159; iOS/13.5; iPhone) [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header] X-Request-ID: F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header] Accept-Language: en [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header] Authorization: [redacted] [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header] Content-Type: application/xml [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header] Depth: 1 [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [header]  [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <?xml version="1.0" encoding="UTF-8"?> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <D:propfind xmlns:D="DAV:" xmlns:oc="http://owncloud.org/ns"> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <D:prop> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <D:resourcetype/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <D:getlastmodified/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <D:getcontentlength/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <D:getcontenttype/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <D:getetag/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <oc:id/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <oc:size/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <oc:permissions/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <oc:favorite/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <oc:share-types/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <oc:owner-id/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] <oc:owner-display-name/> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] </D:prop> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body] </D:propfind> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Request, …] [body]  [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.159000+0200 ownCloud[5199:243699] ⚪️ ┛ [HTTP, Request, …] ----------------------------------------------------------------- [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1091|FULL]
2020-05-24 00:11:35.167000+0200 ownCloud[5199:243699] ⚪️ | [HTTPPipelineBackend, enter] updatePipelineTask: task=15 [OCHTTPPipelineBackend.m:286|FULL]
2020-05-24 00:11:35.168000+0200 ownCloud[5199:243699] ⚪️ | [HTTPPipelineBackend, leave] updatePipelineTask: task.taskID=15, error=(null), task=15 [OCHTTPPipelineBackend.m:319|FULL]
2020-05-24 00:11:35.338000+0200 ownCloud[5199:268631] ⚪️ | [HTTP, Local, …] Task [taskIdentifier=<15>, url=https://demo.owncloud.org/remote.php/dav/files/test/] didFinishCollectingMetrics: { total: [2020-05-23 22:11:35 +0000 - 2020-05-23 22:11:35 +0000, 0.18 sec], startedAfter: 0.00, redirects: 0, transactions: [1: fetchStart: 0.00, request: 0.00..0.00 (0.00), cloud: 0.00..0.18 (0.17), response: 0.18..0.18 (0.00)] } [… PipelineID:ephermal, Instance:0x7f984e542c80, HTTP, Metrics, PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1910|FULL]
2020-05-24 00:11:35.344000+0200 ownCloud[5199:268631] ⚪️ | [HTTPPipelineBackend, enter] updatePipelineTask: task=15 [OCHTTPPipelineBackend.m:286|FULL]
2020-05-24 00:11:35.346000+0200 ownCloud[5199:243699] ⚪️ | [HTTPPipelineBackend, leave] updatePipelineTask: task.taskID=15, error=(null), task=15 [OCHTTPPipelineBackend.m:319|FULL]
2020-05-24 00:11:35.346000+0200 ownCloud[5199:268631] ⚪️ | [HTTP, Local, …] https://demo.owncloud.org/remote.php/dav/files/test/ [taskIdentifier=<15>]: downloadTask:didFinishDownloadingToURL: file:///Users/mstingl_oc/Library/Developer/CoreSimulator/Devices/9D40C86B-CE34-4C45-9E9B-CAF60EF75AB4/data/Containers/Data/Application/F76801A8-6FE3-4C49-8FAE-8A2EC0C3B501/tmp/CFNetworkDownload_5Dke7a.tmp, dbError=(null) [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:2160|FULL]
2020-05-24 00:11:35.347000+0200 ownCloud[5199:268600] ⚪️ | [HTTP, Local, …] Task [taskIdentifier=<15>, url=https://demo.owncloud.org/remote.php/dav/files/test/] didCompleteWithError=(null) [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:1867|FULL]
2020-05-24 00:11:35.348000+0200 ownCloud[5199:268600] ⚪️ | [HTTP, Local, …] Known task [taskIdentifier=<15>, url=https://demo.owncloud.org/remote.php/dav/files/test/] didCompleteWithError=(null) [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:1871|FULL]
2020-05-24 00:11:35.349000+0200 ownCloud[5199:243699] ⚪️ | [HTTPPipelineBackend, enter] updatePipelineTask: task=15 [OCHTTPPipelineBackend.m:286|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ | [HTTPPipelineBackend, leave] updatePipelineTask: task.taskID=15, error=(null), task=15 [OCHTTPPipelineBackend.m:319|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┓ [HTTP, Response, …] Received response: [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [info] # RESPONSE -------------------------------------------------------- [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [info] Method:     PROPFIND [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [info] URL:        https://demo.owncloud.org/remote.php/dav/files/test/ [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [info] Request-ID: F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [info] Error:      - [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [info] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] 207 SUCCESS [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Content-Type: application/xml; charset=utf-8 [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Pragma: no-cache [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] content-security-policy: default-src 'none'; [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Set-Cookie: ochmeadiry1s=jjsl73890jlude1h1k17v7tpir; path=/; secure; HttpOnly, oc_sessionPassphrase=LFska7sIia1%2FyKR%2F6%2BW11OspvCgXDKTzC3Mf01a8gpNhasF3a4KBa6kRdtL1853FnoIoxU3QmIkIxV9zVl1H2YlCXiJgc19hz%2BaUEAhvI5O4Eo%2BtcI06hjI9c38%2Flbf%2F; path=/; secure; HttpOnly, ochmeadiry1s=q05gdu11fh6jnadaociujsfevt; path=/; secure; HttpOnly, cookie_test=test; expires=Sat, 23-May-2020 23:11:35 GMT; Max-Age=3600 [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Server: Apache [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] dav: 1, 3, extended-mkcol, 2 [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] x-download-options: noopen [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Expires: Thu, 19 Nov 1981 08:52:00 GMT [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] x-permitted-cross-domain-policies: none [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] referrer-policy: strict-origin-when-cross-origin [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Cache-Control: no-store, no-cache, must-revalidate [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Date: Sat, 23 May 2020 22:11:35 GMT [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] x-robots-tag: none [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Strict-Transport-Security: max-age=315360000; preload [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] x-xss-protection: 1; mode=block [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Content-Length: 2785 [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] x-content-type-options: nosniff [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] Vary: Brief,Prefer [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header] x-frame-options: SAMEORIGIN [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [header]  [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [body] <?xml version="1.0"?> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [body] <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns"><d:response><d:href>/remote.php/dav/files/test/</d:href><d:propstat><d:prop><d:resourcetype><d:collection/></d:resourcetype><d:getlastmodified>Sat, 23 May 2020 22:06:02 GMT</d:getlastmodified><d:getetag>&quot;5ec99e4a0d647&quot;</d:getetag><oc:id>00000006ochmeadiry1s</oc:id><oc:size>6784009</oc:size><oc:permissions>RDNVCK</oc:permissions><oc:favorite>0</oc:favorite><oc:share-types/><oc:owner-id>test</oc:owner-id><oc:owner-display-name>test</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontentlength/><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/files/test/Documents/</d:href><d:propstat><d:prop><d:resourcetype><d:collection/></d:resourcetype><d:getlastmodified>Sat, 23 May 2020 22:06:01 GMT</d:getlastmodified><d:getetag>&quot;5ec99e49db6c2&quot;</d:getetag><oc:id>00000008ochmeadiry1s</oc:id><oc:size>36227</oc:size><oc:permissions>RDNVCK</oc:permissions><oc:favorite>0</oc:favorite><oc:share-types/><oc:owner-id>test</oc:owner-id><oc:owner-display-name>test</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontentlength/><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/files/test/Photos/</d:href><d:propstat><d:prop><d:resourcetype><d:collection/></d:resourcetype><d:getlastmodified>Sat, 23 May 2020 22:06:02 GMT</d:getlastmodified><d:getetag>&quot;5ec99e4a0d647&quot;</d:getetag><oc:id>00000010ochmeadiry1s</oc:id><oc:size>678556</oc:size><oc:permissions>RDNVCK</oc:permissions><oc:favorite>0</oc:favorite><oc:share-types/><oc:owner-id>test</oc:owner-id><oc:owner-display-name>test</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><d:getcontentlength/><d:getcontenttype/></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/files/test/ownCloud%20Manual.pdf</d:href><d:propstat><d:prop><d:resourcetype/><d:getlastmodified>Sat, 23 May 2020 22:06:01 GMT</d:getlastmodified><d:getcontentlength>6069226</d:getcontentlength><d:getcontenttype>application/pdf</d:getcontenttype><d:getetag>&quot;8ce4ec211e38bbed1fa6dec894a9dc80&quot;</d:getetag><oc:id>00000007ochmeadiry1s</oc:id><oc:size>6069226</oc:size><oc:permissions>RDNVW</oc:permissions><oc:favorite>0</oc:favorite><oc:share-types/><oc:owner-id>test</oc:owner-id><oc:owner-display-name>test</oc:owner-display-name></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus> [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┃ [HTTP, Response, …] [body]  [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.351000+0200 ownCloud[5199:243699] ⚪️ ┛ [HTTP, Response, …] ----------------------------------------------------------------- [… PROPFIND, RequestID:F0756D24-BF50-4E0E-B9DE-2E7AEEC1EDBB, URLSessionTaskID:15] [OCHTTPPipeline.m:1207|FULL]
2020-05-24 00:11:35.355000+0200 ownCloud[5199:243699] ⚪️ | [HTTP, Local, …] Delivering result for taskID=15 to partition handler <OCConnection: 0x7f98489e03a0> [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:1246|FULL]
2020-05-24 00:11:35.355000+0200 ownCloud[5199:243699] ⚪️ | [HTTP, Local, …] Certificate evaluation during delivery of taskID=15 to partition handler <OCConnection: 0x7f98489e03a0> halted delivery [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:1279|FULL]
2020-05-24 00:11:35.357000+0200 ownCloud[5199:243699] ⚪️ | [HTTPPipelineBackend, enter] updatePipelineTask: task=15 [OCHTTPPipelineBackend.m:286|FULL]
2020-05-24 00:11:35.357000+0200 ownCloud[5199:243699] ⚪️ | [HTTPPipelineBackend, leave] updatePipelineTask: task.taskID=15, error=(null), task=15 [OCHTTPPipelineBackend.m:319|FULL]
2020-05-24 00:11:35.357000+0200 ownCloud[5199:243699] ⚪️ | [HTTP, Local, …] Delivering result for taskID=15 to partition handler <OCConnection: 0x7f98489e03a0> [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:1246|FULL]
2020-05-24 00:11:35.357000+0200 ownCloud[5199:243699] ⚪️ | [HTTP, Local, …] Entering post-processing of result for taskID=15 with skipPartitionInstructionDecision=0, error=(null) [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:1325|FULL]
2020-05-24 00:11:35.357000+0200 ownCloud[5199:243699] ⚪️ | [HTTP, Local, …] Leaving post-processing of result for taskID=15 with requestInstruction=0, error=(null) [… PipelineID:ephermal, Instance:0x7f984e542c80] [OCHTTPPipeline.m:1342|FULL]

Details:

  • Don't log binary data
  • Redact Auth header (header] Authorization: [redacted])
  • Cut body after 1M
  • Include X-REQUEST-ID in every line
  • Include "Request" / "Response" in every line
  • Include "info" / "header" / "body" in every line
  • Optional: Timestamp, internal ID's and other useful stuff
@michaelstingl michaelstingl added this to the 2.7.0 milestone Jun 1, 2020
TheOneRing added a commit to TheOneRing/client that referenced this issue Jun 8, 2020
TheOneRing added a commit to TheOneRing/client that referenced this issue Jun 8, 2020
TheOneRing added a commit to TheOneRing/client that referenced this issue Jun 8, 2020
TheOneRing added a commit to TheOneRing/client that referenced this issue Jun 8, 2020
TheOneRing added a commit to TheOneRing/client that referenced this issue Jun 9, 2020
TheOneRing added a commit to TheOneRing/client that referenced this issue Jun 9, 2020
TheOneRing added a commit to TheOneRing/client that referenced this issue Jun 9, 2020
TheOneRing added a commit to TheOneRing/client that referenced this issue Jun 9, 2020
TheOneRing added a commit that referenced this issue Jun 9, 2020
@jnweiger jnweiger mentioned this issue Oct 13, 2020
63 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants