Skip to content

Commit

Permalink
Add a -q/--quiet to torsocks
Browse files Browse the repository at this point in the history
This option disables all logging by setting TORSOCKS_LOG_LEVEL=1.

Signed-off-by: David Goulet <[email protected]>
  • Loading branch information
dgoulet committed Feb 24, 2017
1 parent c5cde94 commit 0b199d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/torsocks.1
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ and Password MUST NOT be set.
.BR "\-d, \-\-debug"
Activate the debug mode. Output will be written on stderr.
.TP
.BR "\-q, \-\-quiet"
Suppress every log messages (even errors).
.TP
.BR "on | off"
This option adds or removes \fBtorsocks(8)\fP from the LD_PRELOAD environment
variable for the current shell. If you want to use this option, you HAVE to
Expand Down
4 changes: 4 additions & 0 deletions src/bin/torsocks.in
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ do
# Set full DEBUG with 5 being the highest possible level.
export TORSOCKS_LOG_LEVEL=5
;;
-q|--quiet)
# Silence logging.
export TORSOCKS_LOG_LEVEL=1
;;
--shell)
tor_shell
break
Expand Down

0 comments on commit 0b199d9

Please sign in to comment.