only print "log" messages if debugging is enabled

also introduce new logging level for "info" messages that are always used
displayed.

Jira-issue: WP-1286