mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
refactor: always debug log github get requests
This commit is contained in:
parent
285a59b085
commit
3e1d8474a9
1 changed files with 1 additions and 3 deletions
|
@ -11,13 +11,11 @@ function sleep(ms) {
|
|||
|
||||
async function get(path, opts, retries = 5) {
|
||||
const method = opts && opts.method ? opts.method : 'get';
|
||||
logger.debug({ retries }, `${method.toUpperCase()} ${path}`);
|
||||
if (method === 'get' && cache[path]) {
|
||||
logger.debug({ path }, 'Returning cached result');
|
||||
return cache[path];
|
||||
}
|
||||
if (retries === 5) {
|
||||
logger.debug(`${method.toUpperCase()} ${path}`);
|
||||
}
|
||||
try {
|
||||
if (appMode) {
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
|
Loading…
Reference in a new issue