Add ifdef to log only where scheme is DEBUG