[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-relays] 0.2.4.20 logging duplicate messages



On 28/01/2014 10:16 PM, Fabian Keil wrote:
Roger Dingledine <arma@xxxxxxx> wrote:

On Tue, Jan 28, 2014 at 03:10:57AM -0600, Scott Bennett wrote:
      Along with my recent OS upgrade I have also updated my tor relay from
0.2.4.3-alpha to 0.2.4.20.  The latter version write two identical copies
of every message to the log file.  I have only one uncommented "Log " line
in my torrc, which is

Log notice file /var/log/tor/notices.log

but every single message is getting written to the file twice.

Which package did you install? If it was the deb, look at
/usr/share/tor/tor-service-defaults-torrc
(these are the default defaults, if you will).

I'm guessing FreeBSD in which case the culprit is probably the
rc script which enables notice logging by default:

fk@r500 ~ $grep Log /usr/jails/tor-jail/usr/local/etc/rc.d/tor
command_args="-f ${tor_conf} --PidFile ${tor_pidfile} --RunAsDaemon 1 --DataDirectory ${tor_datadir} --+Log ${tor_loglevel}\ file\ ${tor_logfile}"

Fabian



_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


I run my relays on FreeBSD too. Just leave all log settings commented in torrc:

#Log notice file /usr/local/var/log/tor/notices.log
#Log debug file /usr/local/var/log/tor/debug.log
#Log notice syslog
#Log debug stderr

And you won't get duplicate entries in /var/log/tor.


--
bsdbox.co
_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays