Logging was calling wrong function name, could have crashed PZH

Jira Issue: WP-1069
Merge pull request #17 from habibvirji/master

Correct API call