lib/util: set current_msg_{level,class} also during a DEBUGADD[C]() call
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Apr 2019 11:40:58 +0000 (13:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 28 May 2019 07:16:25 +0000 (07:16 +0000)
commit0da12ff93d213ac742eeb865bfa5697ca8a2280a
treed0223a3e5a0ac1dd05e2f3b525a4515eea02cd99
parentd98a971247450d494c581c5454e6c270ad1b6880
lib/util: set current_msg_{level,class} also during a DEBUGADD[C]() call

In some situations we use DEBUGADDC() in order to print out content
without a related debug header line.

This is important with the new per class logfile with:

 log level = 1 dsdb_json_audit:10@/var/log/samba/log.dsdb_json_audit

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13915

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/util/debug.c
lib/util/debug.h