Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jussi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
jussi
Commits
0e40eb3c
Commit
0e40eb3c
authored
4 years ago
by
Dariusz Kędzierski
Browse files
Options
Downloads
Plain Diff
Rebase to current autoclave
parents
75f61aaf
713a7360
No related branches found
No related tags found
3 merge requests
!9
finally merge old fixes with master
,
!7
merge changes from hbt4
,
!4
Attach traceback in jussi interal error
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
jussi/errors.py
+1
-2
1 addition, 2 deletions
jussi/errors.py
jussi/serve.py
+5
-0
5 additions, 0 deletions
jussi/serve.py
with
6 additions
and
2 deletions
jussi/errors.py
+
1
−
2
View file @
0e40eb3c
...
@@ -117,7 +117,6 @@ class JussiInteralError(Exception):
...
@@ -117,7 +117,6 @@ class JussiInteralError(Exception):
jrpc_request
:
JrpcRequest
=
None
,
jrpc_request
:
JrpcRequest
=
None
,
jrpc_response
:
JrpcResponse
=
None
,
jrpc_response
:
JrpcResponse
=
None
,
exception
:
Exception
=
None
,
exception
:
Exception
=
None
,
log_traceback
:
bool
=
False
,
error_logger
:
logging
.
Logger
=
None
,
error_logger
:
logging
.
Logger
=
None
,
**
kwargs
)
->
None
:
**
kwargs
)
->
None
:
...
@@ -128,7 +127,7 @@ class JussiInteralError(Exception):
...
@@ -128,7 +127,7 @@ class JussiInteralError(Exception):
self
.
jsonrpc_request
=
jrpc_request
self
.
jsonrpc_request
=
jrpc_request
self
.
jsonrpc_response
=
jrpc_response
self
.
jsonrpc_response
=
jrpc_response
self
.
exception
=
exception
self
.
exception
=
exception
self
.
log_traceback
=
log_traceback
self
.
log_traceback
=
http_request
.
app
.
config
.
args
.
log_traceback
self
.
logger
=
error_logger
or
logger
self
.
logger
=
error_logger
or
logger
self
.
kwargs
=
kwargs
self
.
kwargs
=
kwargs
...
...
This diff is collapsed.
Click to expand it.
jussi/serve.py
+
5
−
0
View file @
0e40eb3c
...
@@ -129,6 +129,11 @@ def parse_args(args: list = None):
...
@@ -129,6 +129,11 @@ def parse_args(args: list = None):
parser
.
add_argument
(
'
--statsd_url
'
,
type
=
str
,
env_var
=
'
JUSSI_STATSD_URL
'
,
parser
.
add_argument
(
'
--statsd_url
'
,
type
=
str
,
env_var
=
'
JUSSI_STATSD_URL
'
,
help
=
'
statsd://host:port
'
,
help
=
'
statsd://host:port
'
,
default
=
None
)
default
=
None
)
parser
.
add_argument
(
'
--log_traceback
'
,
type
=
lambda
x
:
bool
(
strtobool
(
x
)),
env_var
=
'
JUSSI_LOG_TRACEBACK
'
,
help
=
'
Add traceback information to error message
'
,
default
=
False
)
return
parser
.
parse_args
(
args
=
args
)
return
parser
.
parse_args
(
args
=
args
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment