only log when DEBUG is enabled