[fix] When logging errors, use the error as the first argument of the logger
Merge pull request #101 from lpinca/fix/error-logger

Use the error as the first argument of the logger