Skip to content

Commit

Permalink
journald: fix logging container name
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hunt <[email protected]>
  • Loading branch information
haircommander committed Jun 8, 2020
1 parent 50aeae4 commit f951578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctr_logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ int write_journald(int pipe, char *buf, ssize_t buflen)
return -1;

/* only print the name if we have a name to print */
if (name && writev_buffer_append_segment(dev_null, &bufv, container_name, name_len + CID_FULL_EQ_LEN) < 0)
if (name && writev_buffer_append_segment(dev_null, &bufv, container_name, name_len + NAME_EQ_LEN) < 0)
return -1;

/* per docker journald logging format, CONTAINER_PARTIAL_MESSAGE is set to true if it's partial, but otherwise not set. */
Expand Down

0 comments on commit f951578

Please sign in to comment.