Remove debug logs
This commit is contained in:
parent
8e8a89bdfb
commit
8659504a8b
|
@ -127,15 +127,11 @@ def update(notification_id, label, plugin_name, options, description, active, ce
|
|||
notification.options = options
|
||||
notification.description = description
|
||||
notification.active = active
|
||||
current_app.logger.info(f"Initial: {notification.certificates}")
|
||||
current_app.logger.info(f"Adding: {added_certificates}")
|
||||
current_app.logger.info(f"Removing: {removed_certificates}")
|
||||
if certificates:
|
||||
notification.certificates = certificates
|
||||
else:
|
||||
notification.certificates = notification.certificates + added_certificates
|
||||
notification.certificates = [c for c in notification.certificates if c not in removed_certificates]
|
||||
current_app.logger.info(f"Final: {notification.certificates}")
|
||||
|
||||
return database.update(notification)
|
||||
|
||||
|
|
|
@ -337,7 +337,6 @@ class Notifications(AuthenticatedResource):
|
|||
:reqheader Authorization: OAuth token to authenticate
|
||||
:statuscode 200: no error
|
||||
"""
|
||||
print(f"Updating with data: {data}")
|
||||
return service.update(
|
||||
notification_id,
|
||||
data["label"],
|
||||
|
|
Loading…
Reference in New Issue