Skip to content

Commit 30b55e0

Browse files
committed
fix: excluded unnecessary exception type log output
1 parent d0f4a0d commit 30b55e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mamonsu/lib/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def keys_and_queries(self, template_zabbix):
158158
return None
159159

160160
def _log_exception(self, e, trace):
161-
self.last_error_text = 'plugin {0} caught error: {1} {2}'.format(self.__class__.__name__.lower(), repr(e), e)
161+
self.last_error_text = 'plugin {0} caught error: {1}'.format(self.__class__.__name__.lower(), e)
162162
self.log.error(self.last_error_text)
163163
self.log.info('hint: enable debug level to full exception trace')
164164
self.log.debug(trace)

0 commit comments

Comments
 (0)