Less debug
This commit is contained in:
@@ -96,7 +96,7 @@ async def redis_connector(
|
||||
group_id = None,
|
||||
):
|
||||
log.setLevel(logging.INFO)
|
||||
log.info('sender_handler()')
|
||||
log.info(f'sender_handler() {r_channel} {ws_conn} {client_id} {group_id}')
|
||||
|
||||
try:
|
||||
while True:
|
||||
@@ -131,7 +131,7 @@ async def redis_connector(
|
||||
# await ws_conn.send_json(data)
|
||||
send_flag = True
|
||||
elif group_id:
|
||||
log.info('WS group: Skip sending to client')
|
||||
log.debug('WS group: Skip sending to client')
|
||||
send_flag = False
|
||||
# continue # Do not send
|
||||
|
||||
@@ -139,7 +139,7 @@ async def redis_connector(
|
||||
log.info('Sending echo to client')
|
||||
send_flag = True
|
||||
elif data.get('target') == 'echo':
|
||||
log.info('WS echo: Skip sending to client')
|
||||
log.debug('WS echo: Skip sending to client')
|
||||
send_flag = False
|
||||
# continue
|
||||
|
||||
@@ -149,7 +149,7 @@ async def redis_connector(
|
||||
# await ws_conn.send_json(data)
|
||||
|
||||
if send_flag:
|
||||
log.info('Sending!')
|
||||
log.debug('Sending!')
|
||||
await ws_conn.send_json(data)
|
||||
else:
|
||||
log.info('Not sending')
|
||||
|
||||
Reference in New Issue
Block a user