function log()

in gulpfile.babel.js [306:318]


    function log(type) {
        let url = `${cdnUrl}/embed/iframeable/${config.path}/${type}.log?${Date.now()}`;
        return rp(url).then(log => {
            gutil.log(gutil.colors.green(`Got ${type} log:`));
            console.log(log);
        }).catch(err => {
            if (err.statusCode === 404) {
                gutil.log(gutil.colors.yellow(`No ${type} log, have you ever deployed?`));
            } else {
                throw err;
            }
        });
    }