add log output on debug