Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0505e140
authored
Jun 04, 2023
by
carpoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some logging for the store
parent
71d6ccff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
circle/dashboard/views/store.py
+5
-5
No files found.
circle/dashboard/views/store.py
View file @
0505e140
...
@@ -71,19 +71,19 @@ class StoreList(LoginRequiredMixin, TemplateView):
...
@@ -71,19 +71,19 @@ class StoreList(LoginRequiredMixin, TemplateView):
try
:
try
:
if
self
.
request
.
is_ajax
():
if
self
.
request
.
is_ajax
():
context
=
self
.
get_context_data
(
**
kwargs
)
context
=
self
.
get_context_data
(
**
kwargs
)
return
render_to_response
(
return
render
(
self
.
request
,
"dashboard/store/_list-box.html"
,
context
)
"dashboard/store/_list-box.html"
,
context
,
self
.
request
)
else
:
else
:
return
super
(
StoreList
,
self
)
.
get
(
*
args
,
**
kwargs
)
return
super
(
StoreList
,
self
)
.
get
(
*
args
,
**
kwargs
)
except
NoStoreException
:
except
NoStoreException
:
messages
.
warning
(
self
.
request
,
_
(
"No store."
))
messages
.
warning
(
self
.
request
,
_
(
"No store."
))
except
NotOkException
:
except
NotOkException
as
e
:
logger
.
error
(
"Store error:
%
s"
%
unicode
(
e
))
logger
.
exception
(
e
)
messages
.
warning
(
self
.
request
,
_
(
"Store has some problems now."
messages
.
warning
(
self
.
request
,
_
(
"Store has some problems now."
" Try again later."
))
" Try again later."
))
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
critical
(
"Something is wrong with store:
%
s"
,
unicode
(
e
))
logger
.
critical
(
"Something is wrong with store:
%
s"
,
unicode
(
e
))
logger
.
exception
(
e
)
messages
.
warning
(
self
.
request
,
_
(
"Unknown store error."
))
messages
.
warning
(
self
.
request
,
_
(
"Unknown store error."
))
return
redirect
(
"/"
)
return
redirect
(
"/"
)
...
...
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