Remove or reenable debugs
In cases where there are two parameters, but only
one passed into the error
method call we would loose information.
That is why the statements have been re-enabled.
Also categorized logging is used and the method name is printed out. Otherwise the warnings would be out of context.