Commit 0331ea58 authored by juga's avatar juga
Browse files

scanner: lower logging level on uncatch exceptions

when worker thread finish.
parent 1ccca8ab
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -322,9 +322,10 @@ def result_putter_error(target):
    ''' Create a function that takes a single argument -- an error from a
    measurement -- and return that function so it can be used by someone else
    '''
    def closure(err):
        log.error('Unhandled exception caught while measuring %s: %s %s',
                  target.nickname, type(err), err)
    def closure(object):
        # The only object that can be here if there is not any uncatched
        # exception is stem.SocketClosed when stopping sbws
        log.debug(type(object))
    return closure