Skip to content

Commit

Permalink
Log: libcrmcommon: correctly raise detail log line length
Browse files Browse the repository at this point in the history
7d1de98 intended to set the maximum log line length for the system log to 256
and the detail log to 800. However it used QB_LOG_SYSLOG for both, effectively
setting the system log to 800 and letting the detail log default. Fix that.
  • Loading branch information
kgaillot committed Dec 5, 2019
1 parent ebe9c41 commit dec3263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/common/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ crm_add_logfile(const char *filename)
/* qb_log_ctl(fd, QB_LOG_CONF_FILE_SYNC, 1); Turn on synchronous writes */

#ifdef HAVE_qb_log_conf_QB_LOG_CONF_MAX_LINE_LEN
// Longer than default, for logging long XML lines
qb_log_ctl(QB_LOG_SYSLOG, QB_LOG_CONF_MAX_LINE_LEN, 800);
// Longer than default, for logging long XML lines
qb_log_ctl(fd, QB_LOG_CONF_MAX_LINE_LEN, 800);
#endif

/* Enable callsites */
Expand Down

0 comments on commit dec3263

Please sign in to comment.