[GH-ISSUE #96] Logging issues #71

Closed
opened 2026-05-05 04:56:56 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @Every0ne on GitHub (Jul 16, 2018).
Original GitHub issue: https://github.com/debauchee/barrier/issues/96

I run barrierc with --log /dev/null option, however my log files still get littered with thousands of lines of

timestamp machine Barrier[3044]: 2.1.0-RELEASE: [2018-07-16T22:20:58] NOTE: connecting to 'servername': 172.16.0.X:24800
timestamp machine Barrier[3044]: 2.1.0-RELEASE: [2018-07-16T22:20:57] WARNING: failed to connect to server: Timed `out`

whenever the server is not running (and most often it isn't). Is there a way to truly disable logging or reduce verbocity to critical errors only?

Originally created by @Every0ne on GitHub (Jul 16, 2018). Original GitHub issue: https://github.com/debauchee/barrier/issues/96 I run barrierc with `--log /dev/null` option, however my log files still get littered with thousands of lines of ``` timestamp machine Barrier[3044]: 2.1.0-RELEASE: [2018-07-16T22:20:58] NOTE: connecting to 'servername': 172.16.0.X:24800 timestamp machine Barrier[3044]: 2.1.0-RELEASE: [2018-07-16T22:20:57] WARNING: failed to connect to server: Timed `out` ``` whenever the server is not running (and most often it isn't). Is there a way to truly disable logging or reduce verbocity to critical errors only?
Author
Owner

@AdrianKoshka commented on GitHub (Jul 16, 2018):

I think you're confusing logging to a file with the logging to (what I assume is) stderr.

<!-- gh-comment-id:405412641 --> @AdrianKoshka commented on GitHub (Jul 16, 2018): I think you're confusing logging to a file with the logging to (what I assume is) `stderr`.
Author
Owner

@Every0ne commented on GitHub (Jul 17, 2018):

I'm no *nix expert, but even when run with 2>/dev/null 1>/dev/null barrierc still outputs to system-owned log files. What's the reason for --log option then? What I see is that it doesn't do anything at all, no files are created nor written to.

<!-- gh-comment-id:405676903 --> @Every0ne commented on GitHub (Jul 17, 2018): I'm no *nix expert, but even when run with `2>/dev/null 1>/dev/null` barrierc still outputs to system-owned log files. What's the reason for `--log` option then? What I see is that it doesn't do anything at all, no files are created nor written to.
Author
Owner

@W4RH4WK commented on GitHub (Jul 18, 2018):

As I understand it, log output is always written to the console. The --log causes Barrier to also write the output to the given file.

<!-- gh-comment-id:405998670 --> @W4RH4WK commented on GitHub (Jul 18, 2018): As I understand it, log output is always written to the console. The `--log` causes Barrier to *also* write the output to the given file.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#71
No description provided.