Commit 14b00c9c authored by lukas.burgey's avatar lukas.burgey

--wip--

parent edd43b08
Pipeline #110830 passed with stage
in 1 minute and 35 seconds
......@@ -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'))
......
......@@ -118,7 +118,7 @@ HANDLER_BACKUP_COUNT = 3
# audit log
DEBUGX_LOG_LEVEL = 9 # less then debug
logging.addLevelName(DEBUGX_LOG_LEVEL, 'DEBUGX')
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': 'DEBUGX',
'level': 'DEBUX',
'class': FILE_HANDLER,
'maxBytes': HANDLER_MAX_BYTES,
'backupCount': HANDLER_BACKUP_COUNT,
......@@ -189,7 +189,7 @@ LOGGING = {
'formatter': 'standard',
},
'compact-debugx': {
'level': 'DEBUGX',
'level': 'DEBUX',
'class': FILE_HANDLER,
'maxBytes': HANDLER_MAX_BYTES,
'backupCount': HANDLER_BACKUP_COUNT,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment