Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
14b00c9c
Commit
14b00c9c
authored
Sep 25, 2020
by
lukas.burgey
Browse files
--wip--
parent
edd43b08
Pipeline
#110830
passed with stage
in 1 minute and 35 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
feudal/backend/models/deployments.py
View file @
14b00c9c
...
...
@@ -460,6 +460,7 @@ class DeploymentState(models.Model):
# called when a client patches parts of this state
def
state_changed
(
self
):
self
.
save
()
self
.
audit_log_response
()
LOGGER
.
debug
(
self
.
msg
(
'Patched by client: {} - {}'
.
format
(
self
.
state
,
self
.
message
)))
...
...
@@ -486,8 +487,6 @@ class DeploymentState(models.Model):
self
.
failed_attempts
=
0
self
.
save
()
self
.
publish_to_user
()
# called when one of our deployments changes its state_target or when we are first created
def
dep_target_changed
(
self
):
LOGGER
.
debug
(
self
.
msg
(
'Deployment changed'
))
...
...
feudal/settings.py
View file @
14b00c9c
...
...
@@ -118,7 +118,7 @@ HANDLER_BACKUP_COUNT = 3
# audit log
DEBUGX_LOG_LEVEL
=
9
# less then debug
logging
.
addLevelName
(
DEBUGX_LOG_LEVEL
,
'DEBU
G
X'
)
logging
.
addLevelName
(
DEBUGX_LOG_LEVEL
,
'DEBUX'
)
AUDIT_LOG_LEVEL
=
5
# lowest log level
logging
.
addLevelName
(
AUDIT_LOG_LEVEL
,
'AUDIT'
)
...
...
@@ -181,7 +181,7 @@ LOGGING = {
'filters'
:
[
'audit_only'
],
# display no other messages
},
'debugx'
:
{
'level'
:
'DEBU
G
X'
,
'level'
:
'DEBUX'
,
'class'
:
FILE_HANDLER
,
'maxBytes'
:
HANDLER_MAX_BYTES
,
'backupCount'
:
HANDLER_BACKUP_COUNT
,
...
...
@@ -189,7 +189,7 @@ LOGGING = {
'formatter'
:
'standard'
,
},
'compact-debugx'
:
{
'level'
:
'DEBU
G
X'
,
'level'
:
'DEBUX'
,
'class'
:
FILE_HANDLER
,
'maxBytes'
:
HANDLER_MAX_BYTES
,
'backupCount'
:
HANDLER_BACKUP_COUNT
,
...
...
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