added logging statements to SonarController