Skip to content

Commit

Permalink
get latest logs when exceeds limit
Browse files Browse the repository at this point in the history
  • Loading branch information
mathewthe2 committed May 8, 2021
1 parent e982201 commit 069d86c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def get_logs(limit=0):
output.append(log)
f.close()
if limit > 0 and len(output) > limit:
output = output[:limit]
output = output[-:limit]
# Start another thread to match logs to game script
thread = threading.Thread(target = add_gamescript_to_logs, args=[output])
thread.start()
Expand Down

0 comments on commit 069d86c

Please sign in to comment.