mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 23:20:27 +00:00
Log failed domain apply operation
This commit is contained in:
parent
5123d542e4
commit
1f4580a27a
@ -439,6 +439,15 @@ def record_apply(domain_name):
|
|||||||
history.add()
|
history.add()
|
||||||
return make_response(jsonify(result), 200)
|
return make_response(jsonify(result), 200)
|
||||||
else:
|
else:
|
||||||
|
history = History(
|
||||||
|
msg='Failed to apply record changes to domain {0}'.format(domain_name),
|
||||||
|
detail=str(
|
||||||
|
json.dumps({
|
||||||
|
"domain": domain_name,
|
||||||
|
"msg": result['msg'],
|
||||||
|
})),
|
||||||
|
created_by=current_user.username)
|
||||||
|
history.add()
|
||||||
return make_response(jsonify(result), 400)
|
return make_response(jsonify(result), 400)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
current_app.logger.error(
|
current_app.logger.error(
|
||||||
|
Loading…
Reference in New Issue
Block a user