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

Procedure

Edit the CheCluster Custom Resource on the cluster:
$ oc edit checluster/devspaces -n openshift-devspaces
spec:
  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"