refactor(logging): more verbose logging for errors