add guard to args in log decorator
add guard to args in log decorator

If the wrapped function takes no arguments and has no arguments, we need
to skip the check for classes as the first argument and treat it as a
simple function (it has to be by pythonic definition).

devx/torment,swarren83/torment,alunduil/torment,doublerr/torment,kumoru/torment