Skip to content

Commit

Permalink
Fixed issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen van der Heijden committed Oct 26, 2016
1 parent 16363d7 commit afe2672
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2016.10.26, Version 2.0.3 (BETA)

- Replaced logging failed ping to prevent unhandled error msg. (issue #2)

2016.10.23, Version 2.0.2 (BETA)

- Fixed bug in re-connect loop. (issue #1)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from distutils.core import setup
import setuptools

VERSION = '2.0.2'
VERSION = '2.0.3'

setup(
name='siridb-connector-twisted',
Expand Down
4 changes: 1 addition & 3 deletions siridb/twisted/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
from .lib.client import SiriDBClientTwisted


__version_info__ = (2, 0, 2)
__version_info__ = (2, 0, 3)
__version__ = '.'.join(map(str, __version_info__))
__maintainer__ = 'Jeroen van der Heijden'
__email__ = 'jeroen@transceptor.technology'
__all__ = [
'SiriDBClientTwisted'
]


4 changes: 3 additions & 1 deletion siridb/twisted/lib/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def keepaliveLoop(self, interval=45):
protomap.CPROTO_REQ_PING,
timeout=15)
except Exception as e:
log.err(e)
log.msg(
'Ping failed: {}'.format(getattr(e, 'message', e)),
logLevel=logging.ERROR)
self.connector.disconnect()
break
finally:
Expand Down

0 comments on commit afe2672

Please sign in to comment.