Removed an old-style logging command, as _owner may not always exist. Partial attempt at #2928
This commit is contained in:
parent
20a146dabf
commit
37ffd5585b
|
@ -458,7 +458,6 @@ class NonBlockingTcp(PlugIn, IdleObject):
|
||||||
errtxt = "Connection closed unexpectedly"
|
errtxt = "Connection closed unexpectedly"
|
||||||
|
|
||||||
if errnum in (ERR_DISCONN, errno.ECONNRESET, errno.ENOTCONN, errno.ESHUTDOWN):
|
if errnum in (ERR_DISCONN, errno.ECONNRESET, errno.ENOTCONN, errno.ESHUTDOWN):
|
||||||
self.DEBUG(errtxt, 'error')
|
|
||||||
log.error("Connection to %s lost: %s [%d]", self.getName(), errtxt, errnum)
|
log.error("Connection to %s lost: %s [%d]", self.getName(), errtxt, errnum)
|
||||||
self.printed_error = True
|
self.printed_error = True
|
||||||
if not errors_only:
|
if not errors_only:
|
||||||
|
|
Loading…
Reference in New Issue