changed logging to :error for production