Opened 4 years ago

Closed 13 months ago

#16821 closed enhancement (wontfix)

additional /var/run/tor/log default log

Reported by: proper Owned by:
Priority: Low Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords: downstream, logging, tor-relay
Cc: weasel, intrigeri Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Proposal:

  • /var/log/tor/log contains Tor's log across reboots
  • /var/run/tor/log contains Tor's log since last reboot

Both are useful. /var/run/tor/log contains less, more relevant information.

/usr/share/tor/tor-service-defaults-torrc currently contains:
Log notice file /var/log/tor/log

To implement this ticket, it would only require one additional line:
Log notice file /run/tor/log

What do you think?

Child Tickets

Change History (10)

comment:1 Changed 4 years ago by nickm

Hm. Not insane; do any other tools do something like this?

comment:2 in reply to:  1 Changed 4 years ago by proper

Cc: weasel intrigeri added

Replying to nickm:

Hm. Not insane; do any other tools do something like this?

Not that I know. But I am also not aware of anything speaking against this.

Added the first two DD's to CC that came to my mind to comment if that is okay.

comment:3 Changed 4 years ago by teor

Milestone: Tor: 0.2.???

comment:4 Changed 3 years ago by teor

Milestone: Tor: 0.2.???Tor: 0.3.???

Milestone renamed

comment:5 Changed 3 years ago by nickm

Keywords: tor-03-unspecified-201612 added
Milestone: Tor: 0.3.???Tor: unspecified

Finally admitting that 0.3.??? was a euphemism for Tor: unspecified all along.

comment:6 Changed 2 years ago by nickm

Keywords: tor-03-unspecified-201612 removed

Remove an old triaging keyword.

comment:7 Changed 2 years ago by nickm

Keywords: downstream logging tor-relay added
Priority: MediumLow
Severity: Normal

Is there a good rationale to do this in tor, instead of having downstream packages do it? We don't usually set logging policy ourselves...

comment:8 Changed 13 months ago by adrelanos

Makes sense. By that logic I think Log notice file /var/log/tor/log should be removed from Tor upstream but kept by the Tor Debian package.

comment:9 Changed 13 months ago by weasel

The Debian package logs to syslog nowadays. I don't think that'll change. So if this is just a bug for the Debian package, then a) it's in the wrong place and b) it should be closed.

If it's just for upstream, then keep it around if you want.

comment:10 Changed 13 months ago by teor

Resolution: wontfix
Status: newclosed

I think we should keep a default notice log in upstream.

If packagers change it based on their logging policy, great!
If they don't, then the default is safe.

Note: See TracTickets for help on using tickets.