Commit 8116035b authored by 何娜's avatar 何娜

log1

parent 33514018
Pipeline #21351 passed with stage
in 2 seconds
...@@ -23,6 +23,7 @@ class StorageService extends Service { ...@@ -23,6 +23,7 @@ class StorageService extends Service {
dataType: 'json', dataType: 'json',
...opts, ...opts,
}; };
ctx.logger.info(`【StorageService】${url}`);
return ctx.curl(url, opts); return ctx.curl(url, opts);
} }
...@@ -35,8 +36,8 @@ class StorageService extends Service { ...@@ -35,8 +36,8 @@ class StorageService extends Service {
contentType: 'json', contentType: 'json',
}); });
ctx.logger.info(`【Storage】write url:${writeUrl} params`, JSON.stringify({ ...data, serviceType: writeType }), 'result:', JSON.stringify(result.data)); ctx.logger.info(`【Storage】write result`, JSON.stringify(result.data));
if (result.data.code !== '0' && result.data.code !== 0) { if (!(result.data.code !== '0' || result.data.code !== 0)) {
throw new Error('存储数据出错'); throw new Error('存储数据出错');
} }
return; return;
......
...@@ -95,7 +95,7 @@ class TaskService extends Service { ...@@ -95,7 +95,7 @@ class TaskService extends Service {
data, data,
contentType: 'json', contentType: 'json',
}); });
ctx.logger.info(`【Task】fetchTask ${fetchTaskUrl} params`, JSON.stringify(data), JSON.stringify(result.data)); ctx.logger.info(`【Task】fetchTask ${fetchTaskUrl} params`, JSON.stringify(data), result.data.code);
return result.data; return result.data;
} }
async iplimit() { async iplimit() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment