| Conditions | 2 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import logging |
||
| 11 | def new_read(instance, *args, **kwargs): |
||
| 12 | try: |
||
| 13 | return instance.old_read(*args, **kwargs) |
||
| 14 | except Exception as e: |
||
| 15 | redis_online = sync_redis.hgetall(ALL_REDIS_ROOM) |
||
| 16 | logger.error("Error occurred during reading tornadoredis connection. Redis online %s", redis_online) |
||
| 17 | raise e |
||
| 18 | |||
| 32 | async_redis_publisher.connect() |