lib util debug: Increase format buffer to 4KiB
authorGary Lockyer <gary@catalyst.net.nz>
Wed, 17 Apr 2019 22:23:22 +0000 (10:23 +1200)
committerGary Lockyer <gary@samba.org>
Mon, 6 May 2019 01:18:21 +0000 (01:18 +0000)
Increase the debug line buffer to 4KiB, the existing size of 1KiB is too
small for dsdbChange JSON audit messages.  These messages were then
split across multipe lines causing issues in log ingestion tools
expecting single line messages.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13902

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Gary Lockyer <gary@samba.org>
Autobuild-Date(master): Mon May  6 01:18:22 UTC 2019 on sn-devel-184

lib/util/debug.c

index e6a1ba4f96f8ff8efeb743c9699a4cdb778b86c4..23c78ae19c9364feb3a467ffc4294dc6166be5bd 100644 (file)
@@ -44,7 +44,7 @@
  * format_bufr[FORMAT_BUFR_SIZE - 1] should always be reserved
  * for a terminating null byte.
  */
-#define FORMAT_BUFR_SIZE 1024
+#define FORMAT_BUFR_SIZE 4096
 
 /* -------------------------------------------------------------------------- **
  * This module implements Samba's debugging utility.