Skip to content

Commit 268db65

Browse files
committed
enum cleanup
1 parent d08b85e commit 268db65

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

LibreNMS/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def call_script(script, args=(), log_dest=None):
220220
kwargs["stdout"] = subprocess.DEVNULL
221221
kwargs["stderr"] = subprocess.DEVNULL
222222

223-
elif log_dest in (LogOutput.STDOUT, LogOutput.STDERR):
223+
elif log_dest is LogOutput.PASSTHROUGH:
224224
kwargs["stdout"] = sys.stdout
225225
kwargs["stderr"] = sys.stderr
226226

LibreNMS/service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ class RedisConnectionError(Exception):
4242

4343
class LogOutput(Enum):
4444
NONE = "none"
45-
STDOUT = "stdout"
46-
STDERR = "stderr"
45+
PASSTHROUGH = "passthrough"
4746
LOGGER = "logger"
4847
FILE = "file"
4948

librenms-service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
help=(
3535
"Where to direct poller log messages.\n"
3636
" --log-output = log to file (same as --log-output file)\n"
37-
" --log-output DEST = log to stdout, stderr, logger, file\n"
37+
" --log-output DEST = log to none, passthrough, logger, file\n"
3838
" (not specified) = no dedicated poller output logging (=none)"
3939
),
4040
)

0 commit comments

Comments
 (0)