Skip to content

Commit

Permalink
replace printing stacktrace when logstash is not responding with just…
Browse files Browse the repository at this point in the history
… a one line error message
  • Loading branch information
Gal Ben David committed Jan 20, 2021
1 parent 5af2bf8 commit 8df7bec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sergeant/logging/logstash.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ def emit(
socket_connection.settimeout(self.timeout)
socket_connection.connect(self.address)
socket_connection.sendall(encoded_message)
except Exception:
traceback.print_exc()
except Exception as exception:
print(f'sending log entry to the logstash server has failed: {exception}')

0 comments on commit 8df7bec

Please sign in to comment.