Skip to content

Commit bfbb23d

Browse files
authored
Merge pull request #46069 from sbeskin-redhat/OADP-473
OADP 473 - Document how to enable Velero debug loglevel
2 parents c6dbd20 + f112bc3 commit bfbb23d

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

modules/oadp-debugging-oc-cli.adoc

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,33 +34,33 @@ $ oc logs pod/<velero>
3434
[id="oc-velero-debug-logs_{context}"]
3535
== Velero pod debug logs
3636

37-
Use the `oc edit` command to set the `Velero` pod logs to debug level:
37+
You can specify the Velero log level in the `DataProtectionApplication` resource as shown in the following example.
3838

39-
. Edit the `Velero` deployment:
40-
+
41-
[source,terminalsubs="attributes+"]
42-
----
43-
$ oc edit deployment/velero -n {namespace}
44-
----
39+
[NOTE]
40+
====
41+
This option is available starting from OADP 1.0.3.
42+
====
4543

46-
. Add `--log-level` and `debug` to the `spec.template.spec.containers.velero.args` array:
47-
+
4844
[source,yaml]
4945
----
50-
apiVersion: apps/v1
51-
kind: Deployment
52-
...
46+
apiVersion: oadp.openshift.io/v1alpha1
47+
kind: DataProtectionApplication
48+
metadata:
49+
name: velero-sample
5350
spec:
54-
template:
55-
spec:
56-
containers:
57-
- name: velero
58-
image: velero/velero:latest
59-
command:
60-
- /velero
61-
args:
62-
- server
63-
- --log-level
64-
- debug
65-
...
51+
configuration:
52+
velero:
53+
logLevel: warning
6654
----
55+
56+
The following `logLevel` values are available:
57+
58+
* `trace`
59+
* `debug`
60+
* `info`
61+
* `warning`
62+
* `error`
63+
* `fatal`
64+
* `panic`
65+
66+
It is recommended to use `debug` for most logs.

0 commit comments

Comments
 (0)