Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
adjust error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cainky committed Sep 25, 2023
1 parent af08ccf commit 34b08e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/routes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import os
import os, logging
from flask import jsonify, request, Response
from pathlib import Path
from services.merge_service import merge_audio_video
Expand Down Expand Up @@ -55,5 +55,6 @@ def merge():
404,
)
except Exception as e:
return jsonify(error=str(e)), 500
logging.error(f"An error occurred: {str(e)}")
return jsonify(error="An internal error has occurred!"), 500
return jsonify(error="File type not allowed"), 400

0 comments on commit 34b08e6

Please sign in to comment.