@@ -363,50 +363,48 @@ def _update_count_fn(self):
363363 try :
364364 self ._api .metrics_counters (build_metrics_counter_data (count_metrics ))
365365 except :
366- self ._logger .exception ('Exception caught sending count metrics to the back-end. '
367- 'Ignoring metrics.' )
366+ self ._logger .error ('Error sending count metrics to the back-end. Ignoring metrics.' )
368367 self ._ignore_metrics = True
369368
370369 def update_count (self ):
371370 """Signals that an update on count metrics should be sent to the Split.io back-end"""
372371 try :
373372 self ._thread_pool_executor .submit (self ._update_count_fn )
374373 except :
375- self ._logger .exception ( 'Exception caught submitting count metrics update task.' )
374+ self ._logger .error ( 'Error submitting count metrics update task.' )
376375
377376 def _update_time_fn (self ):
378377 time_metrics = self ._fetch_time_metrics_and_clear ()
379378
380379 try :
381380 self ._api .metrics_times (build_metrics_times_data (time_metrics ))
382381 except :
383- self ._logger .exception ('Exception caught sending time metrics to the back-end. '
384- 'Ignoring metrics.' )
382+ self ._logger .error ('Error sending time metrics to the back-end. Ignoring metrics.' )
385383 self ._ignore_metrics = True
386384
387385 def update_time (self ):
388386 """Signals that an update on time metrics should be sent to the Split.io back-end"""
389387 try :
390388 self ._thread_pool_executor .submit (self ._update_time_fn )
391389 except :
392- self ._logger .exception ( 'Exception caught submitting time metrics update task.' )
390+ self ._logger .error ( 'Error submitting time metrics update task.' )
393391
394392 def _update_gauge_fn (self ):
395393 gauge_metrics = self ._fetch_gauge_metrics_and_clear ()
396394
397395 try :
398396 self ._api .metrics_gauge (build_metrics_gauge_data (gauge_metrics ))
399397 except :
400- self ._logger .exception ( 'Exception caught sending gauge metrics to the back-end. '
401- 'Ignoring metrics.' )
398+ self ._logger .error ( 'Error sending gauge metrics to the back-end. '
399+ 'Ignoring metrics.' )
402400 self ._ignore_metrics = True
403401
404402 def update_gauge (self ):
405403 """Signals that an update on time metrics should be sent to the Split.io back-end"""
406404 try :
407405 self ._thread_pool_executor .submit (self ._update_gauge_fn )
408406 except :
409- self ._logger .exception ( 'Exception caught submitting gauge metrics update task.' )
407+ self ._logger .error ( 'Error submitting gauge metrics update task.' )
410408
411409
412410class LoggerMetrics (InMemoryMetrics ):
@@ -469,7 +467,7 @@ def count(self, counter, delta):
469467 try :
470468 self ._thread_pool_executor .submit (self ._delegate .count , counter , delta )
471469 except :
472- self ._logger .exception ( 'Exception caught submitting count metric' )
470+ self ._logger .error ( 'Error submitting count metric' )
473471
474472 def time (self , operation , time_in_ms ):
475473 """Records an execution time in milliseconds for the specified named operation. This method
@@ -485,7 +483,7 @@ def time(self, operation, time_in_ms):
485483 try :
486484 self ._thread_pool_executor .submit (self ._delegate .time , operation , time_in_ms )
487485 except :
488- self ._logger .exception ( 'Exception caught submitting time metric' )
486+ self ._logger .error ( 'Error submitting time metric' )
489487
490488 def gauge (self , gauge , value ):
491489 """Records the latest fixed value for the specified named gauge. This method is
@@ -501,7 +499,7 @@ def gauge(self, gauge, value):
501499 try :
502500 self ._thread_pool_executor .submit (self ._delegate .gauge , gauge , value )
503501 except :
504- self ._logger .exception ( 'Exception caught submitting gauge metric' )
502+ self ._logger .error ( 'Error submitting gauge metric' )
505503
506504
507505class CacheBasedMetrics (Metrics ):
0 commit comments