Skip to content
Permalink
Browse files

server: logging: fix broken buffer handling

Signed-off-by: Florian Scherf <f.scherf@pengutronix.de>
  • Loading branch information...
fscherf committed Aug 13, 2019
1 parent b9c6cdd commit 63d854f951413a24ea1c5e02fedccb2e4612c8da
Showing with 1 addition and 1 deletion.
  1. +1 −1 flamingo/server/logging.py
@@ -46,7 +46,7 @@ def handle(self, record):
buffer_size = len(self.buffer)

if buffer_size > self.buffer_max_size:
self.buffer = self.buffer[buffer_size-self.buffer_max_size]
self.buffer = self.buffer[buffer_size-self.buffer_max_size:]

if record_args['name'] not in self.logger:
self.logger.append(record_args['name'])

0 comments on commit 63d854f

Please sign in to comment.
You can’t perform that action at this time.