turn off setdebug

31 views
Skip to first unread message

Work User

unread,
Mar 10, 2023, 1:37:37 PM3/10/23
to bareos-users
Greetings,

I'm trying to debug some client issues and can update the debug level with setdebug in the console. How do I turn debugging off or what is the default logging level so I can set it back to normal after I'm done? 

Thanks

Bruno Friedmann

unread,
Mar 11, 2023, 11:54:15 AM3/11/23
to bareos-users
Good catch I was pretty sure this was mentioned into the documentation, https://docs.bareos.org/TasksAndConcepts/BareosConsole.html#bcommandsetdebug
You can only guess it with the trace parameter which become active with =1 and inactive with =0

Same for setdebug level=0 all will deactivate all debug on all daemon and also trace.
 
if you're playing with trace file, watch out the disk space they can easily improper sized /var/lib/bareos.

Work User

unread,
Mar 13, 2023, 11:19:09 AM3/13/23
to bareos-users
Ah, thanks for that. I'm still a bit new and wasn't sure if the logging level had a default number and setting debug just cranked up that number. Another piece of the puzzle for me was that director debug logs show up in the system journal instead of /var/log/bareos/bareos.log, at least on Fedora 37
Reply all
Reply to author
Forward
0 new messages