change api.log to console.log for papertrail