Log HTTP traffic
Log the HTTP traffic between the OpenShift Dev Spaces server and the API server of the Kubernetes or OpenShift cluster to troubleshoot communication issues and debug API errors.
Before you begin
- You have an active
ocsession with administrative permissions to the OpenShift cluster. See This page is not included, but the link has been rewritten to point to the nearest parent document.Getting started with the CLI.
Procedure
Edit the
CheCluster Custom Resource on the cluster:
$ oc edit checluster/devspaces -n openshift-devspacesspec:
components:
cheServer:
extraProperties:
CHE_LOGGER_CONFIG: "che.infra.request-logging=TRACE"Results
- Verify that HTTP traffic is logged in the OpenShift Dev Spaces server logs:
$ oc logs deploy/devspaces -n openshift-devspaces | grep "request-logging"