Changed error function to work with Nodejitsu, chaned error ID to err, and now logs on error.