Bug 117 - syslog=2, messages go both to syslog and the standard output.
Summary: syslog=2, messages go both to syslog and the standard output.
Status: RESOLVED FIXED
Alias: None
Product: Slony-I
Classification: Unclassified
Component: slon (show other bugs)
Version: 1.2
Hardware: PC Linux
: low normal
Assignee: Jan Wieck
URL:
Depends on:
Blocks:
 
Reported: 2010-04-23 02:07 UTC by marian
Modified: 2010-08-25 13:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marian 2010-04-23 02:07:07 UTC
In file /etc/slon.conf I have syslog=2 and messages go both to syslog and the standard output (not only to syslog).
It make big files in /var/log.

In function slon_log (file src/slon/misc.c) fwrite is always called.
Comment 1 Christopher Browne 2010-08-23 12:48:02 UTC
This patch (against HEAD) addresses this:

http://github.com/cbbrowne/slony1-engine/commit/9eb5bce628d7feafb422c6f4b7e65518c8f1bc22

I'd think it likely that this will apply to 2.0, too, and I'd agree with applying it there.

Other devs, please validate that this looks good to y'all!
Comment 2 Steve Singer 2010-08-25 11:28:56 UTC
Jan to review.
Comment 3 Jan Wieck 2010-08-25 13:45:12 UTC
Patch applied to master and REL_2_0_STABLE.