Skip to content

Commit e820760

Browse files
committed
Update from f2bd993
1 parent 5d9c95c commit e820760

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ ignore_missing_imports = true
7171
[tool.setuptools.packages.find]
7272
include = ["simple_repository_browser", "simple_repository_browser.*"]
7373
namespaces = false
74+
75+
[tool.setuptools.package-data]
76+
# Static untracked files
77+
"*" = ["static/js/*"]

simple_repository_browser/_app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ async def catch_exceptions_middleware(request: fastapi.Request, call_next):
9696
status_code = 500
9797
detail = f"Internal server error ({err})"
9898
# raise
99-
logging.exception(err)
99+
logging.getLogger("simple_repository_browser.error").error(
100+
'Unhandled exception',
101+
exc_info=err,
102+
)
100103
content = _view.error_page(
101104
request=request,
102105
context=model.ErrorModel(detail=detail),

0 commit comments

Comments
 (0)