mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-13 12:07:14 +08:00
Fix get_logs should return string
This commit is contained in:
parent
07271b27a7
commit
67418eef08
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user