Commit 88593cea by Tycho Andersen

log: remove duplicate definitons and bump buffer size

When writing out the CRIU exec command, we're bumping up against the buffer size limit. Let's increase it so we can avoid: lxc 20160509213229.921 WARN lxc_log - log.c:log_append_logfile:111 - truncated next event from 523 to 512 bytes Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
parent 9504f141
...@@ -40,8 +40,6 @@ ...@@ -40,8 +40,6 @@
#include "caps.h" #include "caps.h"
#include "utils.h" #include "utils.h"
#define LXC_LOG_PREFIX_SIZE 32
#define LXC_LOG_BUFFER_SIZE 512
#define LXC_LOG_DATEFOMAT_SIZE 15 #define LXC_LOG_DATEFOMAT_SIZE 15
int lxc_log_fd = -1; int lxc_log_fd = -1;
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#endif #endif
#define LXC_LOG_PREFIX_SIZE 32 #define LXC_LOG_PREFIX_SIZE 32
#define LXC_LOG_BUFFER_SIZE 512 #define LXC_LOG_BUFFER_SIZE 1024
/* This attribute is required to silence clang warnings */ /* This attribute is required to silence clang warnings */
#if defined(__GNUC__) #if defined(__GNUC__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment