Opened 5 years ago

Closed 3 years ago

#18846 closed defect (worksforme)

Tor never shut up even the user set Log level ERROR.

Reported by: ikurua22 Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


tor's default file: changed last line(Log notice...) to:
Log err file /dev/null

tor's default file(lib/tor/torrc):
Log err file /dev/null
(no "Log" section in each files except these 2 lines)

Even I done these changes, and restart Tor, it still writes
many lines to syslog.

Why TOR never shut up?

[notice] Opening Socks listener...

WHY, Tor write "[notice]" log to syslog?

Child Tickets

Change History (8)

comment:1 Changed 5 years ago by ikurua22

+ reproduceable at least 5+ systems.
+ using your repository for install/update.

comment:2 Changed 5 years ago by teor

Resolution: not a bug
Status: newclosed
Type: taskdefect

This is a feature, not a bug.

Tor writes its initial log messages to stdout, while caching a copy of them.
It then parses its config, and flushes the cache to the configured log.

Writing the initial output to stdout is a feature, in case tor crashes on startup.
We can't wait until we've parsed the config to write log messages.

Please start your tor as:
tor > /dev/null
to achieve the results you want.

comment:3 Changed 5 years ago by cypherpunks

The manual also mentions this and offers the --quiet and --hush options.

comment:4 Changed 5 years ago by ikurua22

Hi all, if you're still reading this, would you tell me how to do
"tor > /dev/null" ?

I always use "service tor stop" or "service tor start" to use tor, no idea how to achieve this.

comment:5 Changed 5 years ago by arma

The original bug reporter said "syslog".

It sounds to me that he has some Tor package that has a pre-configured line to log to syslog. Adding a second log line, to log at level err, won't do anything about the first one.

So the first question is: which package exactly?

comment:6 Changed 5 years ago by ikurua22

Resolution: not a bug
Status: closedreopened

(fixed a bug in tor code; recompiled by myself)

Last edited 5 years ago by ikurua22 (previous) (diff)

comment:7 Changed 4 years ago by nickm

Milestone: Tor: unspecified

comment:8 Changed 3 years ago by nickm

Resolution: worksforme
Status: reopenedclosed
Note: See TracTickets for help on using tickets.