Fix get_logs should return string

This commit is contained in:
pythongosssss 2024-10-28 19:47:05 +00:00
parent 07271b27a7
commit 67418eef08

View File

@ -38,7 +38,7 @@ class InternalRoutes:
@self.routes.get('/logs') @self.routes.get('/logs')
async def get_logs(request): async def get_logs(request):
return web.json_response([(l["t"] + " - " + l["m"]) for l in app.logger.get_logs()]) return web.json_response("".join([(l["t"] + " - " + l["m"]) for l in app.logger.get_logs()]))
@self.routes.get('/logs/raw') @self.routes.get('/logs/raw')
async def get_logs(request): async def get_logs(request):