Skip to content

Commit

Permalink
Switch to lazy % formatting in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tofu-rocketry committed Jul 3, 2024
1 parent 91c77e2 commit f203c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apel/db/backends/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,13 +435,13 @@ def clean_stale_cloud_summaries(self, summariser_start_time, threshold):
)

log.info(
"Running \"%s\" to delete stale summaries" % delete_statement
"Running \"%s\" to delete stale summaries", delete_statement
)
number_deleted = cursor.execute(delete_statement)

self.db.commit()

log.info("Removed %s stale summaries." % number_deleted)
log.info("Removed %s stale summaries.", number_deleted)

except MySQLdb.Error as e:
log.error("A mysql error occurred: %s", e)
Expand Down

0 comments on commit f203c42

Please sign in to comment.