Skip to content

Commit

Permalink
block-name: Implementation of Feature syslog-ng#2964
Browse files Browse the repository at this point in the history
Correcte identation
Signed-off-by: Alexandre Santos <alexandre.rosas.santos@gmail.com>
  • Loading branch information
amdrsantos committed Oct 8, 2019
1 parent d80e8f4 commit c2f23bb
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions lib/logwriter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,18 +1182,18 @@ log_writer_write_message(LogWriter *self, LogMessage *msg, LogPathOptions *path_
}

if (self)
{
LogProtoStatus status = log_proto_client_get_size(self->proto, &current_size);
if (status == LPS_SUCCESS)
{
if (self->options && self->options->size_limit > 0 && self->options->size_limit < current_size)
{
// Maybe here, use a new function created function log_proto_client_end();
close(log_proto_client_get_fd(self->proto));
log_pipe_notify(self->control, NC_ROTATE_REQUIRED, self);
}
}
}
{
LogProtoStatus status = log_proto_client_get_size(self->proto, &current_size);
if (status == LPS_SUCCESS)
{
if (self->options && self->options->size_limit > 0 && self->options->size_limit < current_size)
{
// Maybe here, use a new function created function log_proto_client_end();
close(log_proto_client_get_fd(self->proto));
log_pipe_notify(self->control, NC_ROTATE_REQUIRED, self);
}
}
}

if (consumed)
{
Expand Down

0 comments on commit c2f23bb

Please sign in to comment.