Skip to content

Conversation

@isc-bsaviano
Copy link
Contributor

This PR fixes #1460. The new objectscript.outputRESTTraffic setting supersedes the objectscript.studioActionDebugOutput setting. An example log output can be found below. I also had to make some test changes to address build failures.

+- REQUEST - 2:44:07 PM ----------------------------
GET http://localhost:52773/iris/api/atelier/
COOKIE: <value>
ACCEPT: application/json
CACHE-CONTROL: no-cache
AUTHORIZATION: <value>
+- RESPONSE - 2:44:07 PM ---------------------------
200 OK
DATE: Wed, 22 Jan 2025 19:44:07 GMT
SERVER: Apache/2.4.59 (Unix)
SET-COOKIE: <value>
CACHE-CONTROL: no-cache
EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
PRAGMA: no-cache
CONTENT-LENGTH: 395
CONNECTION: close
CONTENT-TYPE: application/json; charset=utf-8
Body:
{
  "status": {
    "errors": [],
    "summary": ""
  },
  "console": [],
  "result": {
    "content": {
      "version": "IRIS for UNIX (Apple macOS for Apple Silicon) 2025.1.0L (Build 167U) Thu Dec 19 2024 22:38:12 EST",
      "id": "2AE69020-5937-11ED-AA35-BCD07402FD8D",
      "api": 8,
      "features": [
        {
          "name": "DEEPSEE",
          "enabled": true
        },
        {
          "name": "ENSEMBLE",
          "enabled": true
        },
        {
          "name": "HEALTHSHARE",
          "enabled": false
        }
      ],
      "namespaces": [
        "%SYS",
        "INTEROP",
        "USER"
      ]
    }
  }
}
+- END ----------------------------------------------

Copy link
Contributor

@gjsjohnmurray gjsjohnmurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Only one nitpick in setting description.

Co-authored-by: John Murray <[email protected]>
@isc-bsaviano isc-bsaviano merged commit 96bfb81 into intersystems-community:master Jan 23, 2025
5 checks passed
@isc-bsaviano isc-bsaviano deleted the fix-1460 branch January 23, 2025 13:32
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

Successfully merging this pull request may close these issues.

Add a setting for logging REST traffic

2 participants