Skip to content

Commit

Permalink
fix(manager/pip-compile): Decrease log level for ignored args (#27706)
Browse files Browse the repository at this point in the history
  • Loading branch information
not7cd committed Mar 4, 2024
1 parent dc9670a commit b570f0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/modules/manager/pip-compile/common.spec.ts
@@ -1,5 +1,6 @@
import { mockDeep } from 'jest-mock-extended';
import { hostRules } from '../../../../test/util';
import { logger } from '../../../logger';
import {
allowedPipOptions,
extractHeaderCommand,
Expand All @@ -24,7 +25,10 @@ describe('modules/manager/pip-compile/common', () => {
it.each([
'-v',
'--all-extras',
`--allow-unsafe`,
'--generate-hashes',
`--no-emit-index-url`,
`--strip-extras`,
'--resolver=backtracking',
'--resolver=legacy',
'--output-file=reqs.txt',
Expand All @@ -36,6 +40,7 @@ describe('modules/manager/pip-compile/common', () => {
'reqs.txt',
),
).toBeObject();
expect(logger.warn).toHaveBeenCalledTimes(0);
});

it.each(['--resolver', '--output-file reqs.txt', '--extra = jupyter'])(
Expand Down
4 changes: 2 additions & 2 deletions lib/modules/manager/pip-compile/common.ts
Expand Up @@ -160,7 +160,7 @@ export function extractHeaderCommand(
result.indexUrl = value;
// TODO: add to secrets? next PR
} else {
logger.warn(`pip-compile: option ${arg} not handled`);
logger.debug({ option }, `pip-compile: option not handled`);
}
continue;
}
Expand All @@ -177,7 +177,7 @@ export function extractHeaderCommand(
continue;
}

logger.warn(`pip-compile: option ${arg} not handled`);
logger.debug({ option: arg }, `pip-compile: option not handled`);
}
logger.trace(
{
Expand Down

0 comments on commit b570f0d

Please sign in to comment.