Warn about online clients on logfile end
This commit is contained in:
parent
59d4c88701
commit
90a367da27
|
@ -131,6 +131,11 @@ def parse_logs(log_glob, ident_map=None, online_dc=True, *args, **kwargs):
|
||||||
events = filter(None, map(_parse_line, f))
|
events = filter(None, map(_parse_line, f))
|
||||||
# chain apply events to Client-obj
|
# chain apply events to Client-obj
|
||||||
clients.apply_events(itertools.chain.from_iterable(events))
|
clients.apply_events(itertools.chain.from_iterable(events))
|
||||||
|
# warn for online clients
|
||||||
|
online_clients = list(filter(lambda c: c.connected, clients))
|
||||||
|
logger.debug(
|
||||||
|
'Some clients are still connected: %s' % online_clients
|
||||||
|
)
|
||||||
if len(clients) >= 1:
|
if len(clients) >= 1:
|
||||||
# assemble Server-obj and yield
|
# assemble Server-obj and yield
|
||||||
yield Server(virtualserver_id, clients)
|
yield Server(virtualserver_id, clients)
|
||||||
|
|
Loading…
Reference in New Issue