Plugin should use debug() instead of log() for debug-output.

Although debug() function has been defined, log() is used insead, what causes unnecessary debug-output in console