setdebug
Sets debug level.
Synopsis
setdebug [level=<level>] [trace=<-1|0|1>] [timestamp=<-1|0|1>]
[hangup=<-1|0|1>] [tags=<tags>] [client=<client>] [storage=<storage>]
[dir] [director] [all]
Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.
Description
Sets the debug level of the Director (dir or director), a File Daemon (client=), a Storage Daemon (storage=) or all daemons at once (all). Level 0 switches debug output off. The running daemon is changed, not its configuration; after a restart the start value applies again.
trace= writes the debug output to a trace file in the working directory, timestamp= prefixes every debug line with a time stamp; without them the setting stays unchanged. hangup= is a File Daemon test aid that drops the connection after n files. A missing level is asked for, a missing target leads to a daemon selection.
Arguments
| Argument | Type | Values / source | Default | Flags | Description |
|---|---|---|---|---|---|
level= | integer | Debug level. | |||
trace= | enum | -1, 0, 1 | Trace flag. | ||
timestamp= | enum | -1, 0, 1 | Timestamp flag. | ||
hangup= | enum | -1, 0, 1 | FD hangup flag. | ||
tags= | string | Debug tags. | |||
client= | resource | from .clients | File Daemon. | ||
storage= | resource | from .storages | Storage Daemon. | ||
dir | keyword | The Director. | |||
director | keyword | The Director. | |||
all | keyword | Every daemon. |
Examples
Verbose Director debugging into the trace file:
setdebug level=100 trace=1 dir
Debug the File Daemon with time stamps:
setdebug level=200 timestamp=1 client=bareos-fd
Switch debug output off everywhere:
setdebug level=0 all