1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/wmco-configure-debug-logging.adoc
2025-02-20 13:28:01 +00:00

41 lines
1.3 KiB
Plaintext

// Module included in the following assemblies:
//
// windows_containers/enabling-windows-container-workloads.adoc
:_mod-docs-content-type: CONCEPT
[id="wmco-configure-debug-logging_{context}"]
= Configuring debug-level logging for the Windows Machine Config Operator
By default, the Windows Machine Config Operator (WMCO) is configured to use the `info` log level. You can change the log level to `debug` by editing the WMCO `Subscription` object.
.Procedure
. Edit the `windows-machine-config-operator` subscription in the `windows-machine-config-operator` namespace by using the following command:
+
[source,terminal]
----
$ oc edit subscription windows-machine-config-operator -n openshift-windows-machine-config-operator
----
. Add the follwing parameters to the `.spec.config.env` stanza:
+
[source,yaml]
----
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
# ...
name: windows-machine-config-operator
namespace: openshift-windows-machine-config-operator
# ...
spec:
# ...
config:
env:
- name: ARGS <1>
value: --debugLogging <2>
----
<1> Defines a list of environment variables that must exist in all containers in the pod.
<2> Specifies the `debug` level of verbosity for log messages.
You can revert to the default `info` log level by removing the `name` and `value` parameters that you added.