Changeset 1674

Show
Ignore:
Timestamp:
23/06/10 13:34:48 (3 years ago)
Author:
matthijs
Message:

initialize logging before logging a line, instead of after.

Since syslog() initializes the logging automatically, things already worked.
However, before the first line logged by fonstated wasn't prefixed with
"fonstated:" because logging was initialized after the first line logged.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/fon/fonstate/src/lib/log.c

    r856 r1674  
    4343        if(daemonize) 
    4444        { 
     45                start_log(); 
    4546                syslog(10, p); 
    46                 start_log(); 
    4747        } else { 
    4848                printf(p);