ctdb-logging: Remove duplicate logging code