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

logs: improve repository cache logging

parent 2cdd8f4b
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,10 @@ export function getCacheFileName(config: RenovateConfig): string {
function validate(config: RenovateConfig, input: any): Cache | null {
if (input?.repository === config.repository) {
logger.debug('Repository cache is valid');
return input as Cache;
}
logger.info('Repository cache invalidated');
// reset
return null;
}
......@@ -52,7 +54,7 @@ export async function initialize(config: RenovateConfig): Promise<void> {
);
}
} catch (err) {
logger.debug({ cacheFileName }, 'No repository cache found');
logger.debug({ cacheFileName }, 'Repository cache not found');
}
cache = cache || { repository: config.repository };
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment