Skip to content

Commit

Permalink
log: remove duplicate definitons and bump buffer size
Browse files Browse the repository at this point in the history
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: Tycho Andersen <tycho.andersen@canonical.com>
  • Loading branch information
Tycho Andersen committed May 10, 2016
1 parent 9504f14 commit 88593ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/lxc/log.c
Expand Up @@ -40,8 +40,6 @@
#include "caps.h"
#include "utils.h"

#define LXC_LOG_PREFIX_SIZE 32
#define LXC_LOG_BUFFER_SIZE 512
#define LXC_LOG_DATEFOMAT_SIZE 15

int lxc_log_fd = -1;
Expand Down
2 changes: 1 addition & 1 deletion src/lxc/log.h
Expand Up @@ -44,7 +44,7 @@
#endif

#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 */
#if defined(__GNUC__)
Expand Down

0 comments on commit 88593ce

Please sign in to comment.