Fixed issue where it throws an error if you try to log an object with a function.