Add job name and id in log
This commit is contained in:
1 parent
b263e2746c
commit
05e448c4c5
1 file changed
+2
-2
@@ -124,7 +124,7 @@ class NetworkService {
|
||||
*/
|
||||
async requestHttp(job) {
|
||||
try {
|
||||
const { url, secret, _id, teamId, type, jsonPath, matchMethod, expectedValue } = job.data;
|
||||
const { url, secret, _id, name, teamId, type, jsonPath, matchMethod, expectedValue } = job.data;
|
||||
const config = {};
|
||||
|
||||
secret !== undefined && (config.headers = { Authorization: `Bearer ${secret}` });
|
||||
@@ -158,7 +158,7 @@ class NetworkService {
|
||||
this.logger.info({
|
||||
service: this.SERVICE_NAME,
|
||||
method: "requestHttp",
|
||||
message: "match result with expected value",
|
||||
message: `Job: [${name}](${_id}) match result with expected value`,
|
||||
details: { expectedValue, result, jsonPath, matchMethod }
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user