With logging you can specify % variables as arguments:

logger.debug("Deactivating %s", rowkey)