Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
723aa4cf
Commit
723aa4cf
authored
4 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
logs: improve repository cache logging
parent
2cdd8f4b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/util/cache/repository/index.ts
+3
-1
3 additions, 1 deletion
lib/util/cache/repository/index.ts
with
3 additions
and
1 deletion
lib/util/cache/repository/index.ts
+
3
−
1
View file @
723aa4cf
...
...
@@ -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 r
epository cache found
'
);
logger
.
debug
({
cacheFileName
},
'
R
epository cache
not
found
'
);
}
cache
=
cache
||
{
repository
:
config
.
repository
};
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment