~ubuntu-branches/ubuntu/trusty/monit/trusty

« back to all changes in this revision

Viewing changes to src/log.c

  • Committer: Package Import Robot
  • Author(s): Sergey B Kirpichev
  • Date: 2012-12-09 17:42:20 UTC
  • Revision ID: package-import@ubuntu.com-20121209174220-9tzq5vbxr1izvmjv
Tags: 1:5.5-2
* Show error while doing an attempt to stop daemon as non-root user
  (LP: #877667)
* Use /run as pidfile location, patch 09 was added
* Drop support for "startup" option and /etc/monit/monit_delay
* Update patch 08 from upstream
* Drop monit_check_config (monitrc now non-empty by default)
* Cleanup restart target in monit.init
* Drop -c $CONFIG argument from monit options in monit.init
* Drop multiarch workarround for libssl in debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
411
411
 
412
412
  LOCK(log_mutex)
413
413
 
414
 
  if (priority < LOG_INFO) {
 
414
  FILE *output = priority < LOG_INFO ? stderr : stdout;
415
415
#ifdef HAVE_VA_COPY
416
 
    va_copy(ap_copy, ap);
417
 
    vfprintf(stderr, s, ap_copy);
418
 
    va_end(ap_copy);
 
416
  va_copy(ap_copy, ap);
 
417
  vfprintf(output, s, ap_copy);
 
418
  va_end(ap_copy);
419
419
#else
420
 
    vfprintf(stderr, s, ap);
 
420
  vfprintf(output, s, ap);
421
421
#endif
422
 
    fflush(stderr);
423
 
  }
 
422
  fflush(output);
424
423
 
425
424
  if (Run.dolog) {
426
425
    if (Run.use_syslog) {