Skip to content
Snippets Groups Projects
Commit 3aa94d46 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

chore: no meta for debug statements

parent f8436d4e
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ export function getQueue(url: string): PQueue | null {
queue = null; // null represents "no queue", as opposed to undefined
const concurrency = getRequestLimit(url);
if (concurrency) {
logger.debug({ concurrency, host }, 'Using queue');
logger.debug(`Using queue: host=${host}, concurrency=${concurrency}`);
queue = new PQueue({ concurrency });
} else {
logger.debug({ host }, 'No concurrency limits');
......
......@@ -18,10 +18,7 @@ export class PackageFiles {
}
static clear(): void {
logger.debug(
{ baseBranches: [...this.data.keys()] },
'PackageFiles.clear() - Package files deleted'
);
logger.debug('PackageFiles.clear() - Package files deleted');
this.data.clear();
}
......
......@@ -79,7 +79,9 @@ export async function extract(
cachedExtract?.sha === baseBranchSha &&
cachedExtract?.configHash === configHash
) {
logger.debug({ baseBranch, baseBranchSha }, 'Found cached extract');
logger.debug(
`Found cached extract for ${baseBranch!} (sha=${baseBranchSha})`
);
packageFiles = cachedExtract.packageFiles;
try {
for (const files of Object.values(packageFiles)) {
......
......@@ -102,13 +102,12 @@ export async function writeUpdates(
.join(', ')}`
);
const prsRemaining = await getPrsRemaining(config, branches);
logger.debug({ prsRemaining }, 'Calculated maximum PRs remaining this run');
logger.debug(`Calculated maximum PRs remaining this run: ${prsRemaining}`);
setMaxLimit(Limit.PullRequests, prsRemaining);
const branchesRemaining = await getBranchesRemaining(config, branches);
logger.debug(
{ branchesRemaining },
'Calculated maximum branches remaining this run'
`Calculated maximum branches remaining this run: ${branchesRemaining}`
);
setMaxLimit(Limit.Branches, branchesRemaining);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment