Authored by 郭成尧

Merge branch 'develop' of git.yoho.cn:fe/yohobuywap-node into feature/favApi

@@ -136,7 +136,7 @@ const _getChannelResource = (params) => { @@ -136,7 +136,7 @@ const _getChannelResource = (params) => {
136 if (result && result.code === 200) { 136 if (result && result.code === 200) {
137 return resourcesProcess(result.data.list); 137 return resourcesProcess(result.data.list);
138 } else { 138 } else {
139 - logger.error('首页资源位接口返回状态码 不是 200'); 139 + logger.error('index resouce is not 200');
140 return result; 140 return result;
141 } 141 }
142 }); 142 });
@@ -156,7 +156,7 @@ const _getLeftNav = (choosed) => { @@ -156,7 +156,7 @@ const _getLeftNav = (choosed) => {
156 if (result && result.code === 200) { 156 if (result && result.code === 200) {
157 return _processSideBar(result.data, choosed); 157 return _processSideBar(result.data, choosed);
158 } else { 158 } else {
159 - logger.error('侧边栏数据接口返回状态码 不是 200'); 159 + logger.error('sidebar code is not 200');
160 return result; 160 return result;
161 } 161 }
162 }); 162 });
@@ -191,7 +191,7 @@ const _getChannelList = () => { @@ -191,7 +191,7 @@ const _getChannelList = () => {
191 }); 191 });
192 return Object.keys(list).length ? list : channelList; 192 return Object.keys(list).length ? list : channelList;
193 } else { 193 } else {
194 - logger.error('频道选择接口返回状态码 不是 200'); 194 + logger.error('channel select code is not 200');
195 return channelList; 195 return channelList;
196 } 196 }
197 }); 197 });
@@ -210,7 +210,7 @@ const _getChannelBg = () => { @@ -210,7 +210,7 @@ const _getChannelBg = () => {
210 if (result && result.code === 200) { 210 if (result && result.code === 200) {
211 return result.data.length && result.data[0] && result.data[0].data && result.data[0].data.list[0]; 211 return result.data.length && result.data[0] && result.data[0].data && result.data[0].data.list[0];
212 } else { 212 } else {
213 - logger.error('频道选择页背景图接口返回状态码 不是 200'); 213 + logger.error('channel select background code is not 200');
214 return { 214 return {
215 src: '' 215 src: ''
216 }; 216 };
@@ -51,7 +51,8 @@ module.exports = { @@ -51,7 +51,8 @@ module.exports = {
51 name: 'error', 51 name: 'error',
52 level: 'error', 52 level: 'error',
53 filename: 'logs/error.log', 53 filename: 'logs/error.log',
54 - handleExceptions: true 54 + handleExceptions: true,
  55 + maxFiles: 7
55 }, 56 },
56 udp: { // send by udp 57 udp: { // send by udp
57 measurement: 'yohobuywap_node_log', 58 measurement: 'yohobuywap_node_log',