Skip to content

Commit

Permalink
Tidy up logging commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys Koedijk committed Dec 3, 2024
1 parent 9fd04ab commit b2e105a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import axios from 'axios';
import * as semver from 'semver';

import { warning } from 'azure-pipelines-task-lib/task';

import { IPackage } from './IPackage';
import { ISecurityVulnerability } from './ISecurityVulnerability';
import { PackageEcosystem } from './PackageEcosystem';
Expand Down Expand Up @@ -193,7 +195,7 @@ export class GitHubGraphClient {
results.push(...batchResults.flat());
}
} catch (error) {
console.warn(`Request batch [${i}-${i + batchSize}] failed; The data may be incomplete. ${error}`);
warning(`Request batch [${i}-${i + batchSize}] failed; The data may be incomplete. ${error}`);
}
}
}
Expand Down

0 comments on commit b2e105a

Please sign in to comment.