dev@locazia: add debug print

This commit is contained in:
user 2024-03-08 03:17:52 +03:00
parent c2673dd1cd
commit f1940df028
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ from datetime import datetime
from mimetypes import guess_type from mimetypes import guess_type
import aiofiles import aiofiles
import traceback
from base58 import b58encode from base58 import b58encode
from sanic import response from sanic import response
@ -78,6 +79,7 @@ async def s_api_v1_storage_post(request):
"content_url": f"dmy://storage?cid={new_cid}", "content_url": f"dmy://storage?cid={new_cid}",
}) })
except BaseException as e: except BaseException as e:
make_log("Storage", f"Error: {e}" + '\n' + traceback.format_exc(), level="error")
return response.json({"error": f"Error: {e}"}, status=500) return response.json({"error": f"Error: {e}"}, status=500)