Downgrade log levels for some messages to debug

This commit is contained in:
Michael B. Gale 2024-04-12 14:04:44 +01:00
parent 93f93fc2ad
commit efc474680f
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 7 additions and 5 deletions

View file

@ -107,7 +107,7 @@ export function addDiagnostic(
if (existsSync(databasePath)) {
writeDiagnostic(config, language, diagnostic);
} else {
logger.info(
logger.debug(
`Writing a diagnostic for ${language}, but the database at ${databasePath} does not exist yet.`,
);
@ -146,6 +146,7 @@ function writeDiagnostic(
writeFileSync(jsonPath, JSON.stringify(diagnostic));
} catch (err) {
logger.warning(`Unable to write diagnostic message to database: ${err}`);
logger.debug(JSON.stringify(diagnostic));
}
}
@ -167,7 +168,7 @@ export function logUnwrittenDiagnostics() {
/** Writes all unwritten diagnostics to disk. */
export function flushDiagnostics(config: Config) {
const logger = getActionsLogger();
logger.info(
logger.debug(
`Writing ${unwrittenDiagnostics.length} diagnostic(s) to database.`,
);