seems weird... err is an object with logtype on it.... wish you could just pass the error object to the logger..