Ticket #5069: 0001-Fix-first-log-line.patch

File 0001-Fix-first-log-line.patch, 758 bytes (added by karsten, 8 years ago)

Fix first log line.

  • src/util.c

    From 5620780fff36ba66c295900920579908bacd1d78 Mon Sep 17 00:00:00 2001
    From: Karsten Loesing <karsten.loesing@gmx.net>
    Date: Sat, 11 Feb 2012 11:07:05 +0100
    Subject: [PATCH] Fix first log line.
    
    The idea was to add a newline before the log line to separate runs.  But
    that doesn't work so well with timestamps and log severity written before
    the actual log message.  Taking out the newline.
    ---
     src/util.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/util.c b/src/util.c
    index 9a86ad2..f2089df 100644
    a b log_set_method(int method, const char *filename) 
    450450  }
    451451
    452452  logging_method = method;
    453   log_info("\nStarting.");
     453  log_info("Starting.");
    454454
    455455  return 0;
    456456}