only execute if debug logging enabled