Skip to content

Commit

Permalink
Merge pull request #83 from jjyyhh0208/code-review
Browse files Browse the repository at this point in the history
Fix: logger fixed
  • Loading branch information
jjyyhh0208 authored Oct 17, 2024
2 parents cfd045a + 56794c7 commit 62cbcbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions backend/worklog/profiles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ def post(self, request, *args, **kwargs):
return Response({"error": str(parse_error)}, status=status.HTTP_400_BAD_REQUEST)

except Exception as e:
logger.error(f"Unexpected error: {e}", exc_info=True)
logger.error(f"Exception details: {str(e)}")
logger.error(f"Unexpected error 1st step: {e}", exc_info=True)
print(f"Exception caught: {e}")
return Response({
"error": "An unexpected error occurred during 1st step",
Expand Down
2 changes: 1 addition & 1 deletion backend/worklog/worklog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID")
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY")
# AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STORAGE_BUCKET_NAME")
AWS_STORAGE_BUCKET_NAME = 'worklog-bucket'
AWS_STORAGE_BUCKET_NAME = "worklog-bucket"
AWS_REGION_NAME = os.getenv("AWS_REGION_NAME")


Expand Down

0 comments on commit 62cbcbf

Please sign in to comment.