// Module included in the following assemblies: // //backup_and_restore/application_backup_and_restore/troubleshooting/velero-cli-tool.adoc :_mod-docs-content-type: REFERENCE [id="oadp-debugging-oc-cli_{context}"] = Debugging Velero resources with the OpenShift CLI tool [role="_abstract"] You can debug a failed backup or restore by checking Velero custom resources (CRs) and the `Velero` pod log with the OpenShift CLI tool. .Procedure * Retrieve a summary of warnings and errors associated with a `Backup` or `Restore` CR by using the following `oc describe` command: + [source,terminal] ---- $ oc describe ---- * Retrieve the `Velero` pod logs by using the following `oc logs` command: + [source,terminal] ---- $ oc logs pod/ ---- * Specify the Velero log level in the `DataProtectionApplication` resource as shown in the following example. + [NOTE] ==== This option is available starting from {oadp-short} 1.0.3. ==== + .Example Velero log level file [source,yaml] ---- apiVersion: oadp.openshift.io/v1alpha1 kind: DataProtectionApplication metadata: name: velero-sample spec: configuration: velero: logLevel: warning ---- + The following `logLevel` values are available: * `trace` * `debug` * `info` * `warning` * `error` * `fatal` * `panic` + Use the `info` `logLevel` value for most logs.