Authored by 李奇

logger config

... ... @@ -74,16 +74,11 @@ module.exports = {
handleExceptions: true,
maxFiles: 7
},
udp: { // send by udp
level: 'debug', // logger level
host: 'influxdblog.yohoops.org', // influxdb host
port: '4444' // influxdb port
},
console: {
close: true,
level: 'debug',
colorize: 'all',
prettyPrint: true
prettyPrint: true,
debugStdout: true
}
},
thirdLogin: {
... ... @@ -126,25 +121,22 @@ if (isProduction) {
infoFile: {
name: 'info',
level: 'info',
filename: 'logs/info.log',
filename: '/Data/logs/yohoblk-wap/info.log',
maxFiles: 7
},
errorFile: {
name: 'error',
level: 'error',
filename: 'logs/error.log',
filename: '/Data/logs/yohoblk-wap/error.log',
handleExceptions: true,
maxFiles: 7
},
udp: { // send by udp
level: 'debug', // logger level
host: 'influxdblog.yohoops.org', // influxdb host
port: '4444' // influxdb port
},
console: {
close: true,
level: 'info',
colorize: 'all',
prettyPrint: true
prettyPrint: true,
debugStdout: true
}
},
report: {
... ...
... ... @@ -12,6 +12,7 @@ const routes = [
{
route: /product\/\d+/,
cache: true,
// disable: true
},
{
... ...
... ... @@ -12,7 +12,7 @@ yoho.ready(() => {
yoho.showLoading(false);
$('.home').on('click', () => {
if(yoho.isYohoBuy) {
if (yoho.isYohoBuy) {
yoho.goNewBack();
} else {
yoho.goBack();
... ...