reworded debug logging