Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
a2a4236e
Commit
a2a4236e
authored
Oct 25, 2022
by
Oleksandr Barabash
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging minor fixes
parent
964a2988
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app.py
app.py
+4
-4
No files found.
app.py
View file @
a2a4236e
...
...
@@ -86,10 +86,10 @@ async def v1_get_initiations(request: Request) -> Response:
id
=
init
.
id
)
for
init
in
inits
])
return
Response
(
body
=
json
.
dumps
(
data
),
status
=
HTTPStatus
.
OK
)
except
ItemNotFound
as
e
:
print
(
"ItemNotFound:
"
,
e
)
Log
.
e
(
TAG
,
"v1_get_initiations::item not found
"
,
e
)
return
Response
(
status
=
HTTPStatus
.
NOT_FOUND
)
except
Exception
as
e
:
print
(
"error:"
,
e
)
Log
.
e
(
TAG
,
"v1_get_initiations::exception"
,
sys
.
exc_info
()
)
return
Response
(
status
=
HTTPStatus
.
BAD_REQUEST
)
...
...
@@ -111,8 +111,8 @@ async def v1_get_notification(request: Request) -> Response:
except
ItemNotFound
as
e
:
Log
.
e
(
TAG
,
"v1_get_notification::item not found"
,
e
)
return
Response
(
status
=
HTTPStatus
.
NOT_FOUND
)
except
Exception
as
e
:
Log
.
e
(
TAG
,
exc_info
=
e
)
except
Exception
:
Log
.
e
(
TAG
,
exc_info
=
sys
.
exc_info
()
)
return
Response
(
status
=
HTTPStatus
.
BAD_REQUEST
)
...
...
Oleksandr Barabash
@skal
mentioned in commit
78756e32
Feb 14, 2023
mentioned in commit
78756e32
mentioned in commit 78756e32fd207b471e7bfd931ba8977108ba8afc
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment