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

logs: log latest commit time

parent 672c3c62
Branches
Tags
No related merge requests found
......@@ -113,6 +113,12 @@ class Storage {
) / 10;
logger.info({ cloneSeconds }, 'git clone completed');
}
try {
const latestCommitDate = (await git.log({ n: 1 })).latest.date;
logger.debug({ latestCommitDate }, 'latest commit');
} catch (err) /* istanbul ignore next */ {
logger.warn({ err }, 'Cannot retrieve latest commit date');
}
if (global.gitAuthor) {
logger.info({ gitAuthor: global.gitAuthor }, 'Setting git author');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment