Skip to content

Commit

Permalink
Suppress "invalid facility message" when using stderr only
Browse files Browse the repository at this point in the history
This annoying/irrelevant message was probably an oversight to begin
with.

Commit message kibitzed by Daniel Farina <[email protected]>
  • Loading branch information
Noah Yetter authored and Daniel Farina committed Apr 5, 2015
1 parent c6dd4b1 commit d461ea2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wal_e/log_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def terrible_log_output(s):
valid_facility = False
if 'syslog' in log_destinations:
facility, valid_facility = get_syslog_facility()

if not valid_facility:
terrible_log_output('invalid syslog facility level specified')

try:
# Add syslog output.
HANDLERS.append(handlers.SysLogHandler(syslog_address,
Expand All @@ -103,10 +107,6 @@ def terrible_log_output(s):
# Default to INFO level logging.
set_level(kwargs.get('level', logging.INFO))

if not valid_facility:
WalELogger(__name__).warning(
msg='invalid syslog facility level specified')


def get_log_destinations():
"""Parse env string"""
Expand Down

0 comments on commit d461ea2

Please sign in to comment.