add missing debug logging function.