Remove debug logs

This commit is contained in:
Jasmine Schladen 2020-11-02 16:19:30 -08:00
parent 8e8a89bdfb
commit 8659504a8b
2 changed files with 0 additions and 5 deletions

View File

@ -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)

View File

@ -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"],