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
78756e32
Commit
78756e32
authored
Oct 25, 2022
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "logging minor fixes"
This reverts commit
a2a4236e
.
parent
282a6b45
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 @
78756e32
...
...
@@ -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
:
Log
.
e
(
TAG
,
"v1_get_initiations::item not found
"
,
e
)
print
(
"ItemNotFound:
"
,
e
)
return
Response
(
status
=
HTTPStatus
.
NOT_FOUND
)
except
Exception
as
e
:
Log
.
e
(
TAG
,
"v1_get_initiations::exception"
,
sys
.
exc_info
()
)
print
(
"error:"
,
e
)
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
:
Log
.
e
(
TAG
,
exc_info
=
sys
.
exc_info
()
)
except
Exception
as
e
:
Log
.
e
(
TAG
,
exc_info
=
e
)
return
Response
(
status
=
HTTPStatus
.
BAD_REQUEST
)
...
...
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