mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Remove newline characters from API file logs
This commit is contained in:
parent
3956d9c699
commit
2e51fa9629
@ -45,6 +45,9 @@ class ApiServersServerLogsHandler(BaseApiHandler):
|
||||
self.helper.get_os_understandable_path(server_data["log_path"]),
|
||||
log_lines,
|
||||
)
|
||||
|
||||
# Remove newline characters from the end of the lines
|
||||
raw_lines = [line.rstrip("\r\n") for line in raw_lines]
|
||||
else:
|
||||
raw_lines = ServerOutBuf.lines.get(server_id, [])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user