Downgrade log levels for some messages to debug
This commit is contained in:
parent
93f93fc2ad
commit
efc474680f
3 changed files with 7 additions and 5 deletions
5
lib/diagnostics.js
generated
5
lib/diagnostics.js
generated
|
|
@ -43,7 +43,7 @@ function addDiagnostic(config, language, diagnostic) {
|
|||
writeDiagnostic(config, language, diagnostic);
|
||||
}
|
||||
else {
|
||||
logger.info(`Writing a diagnostic for ${language}, but the database at ${databasePath} does not exist yet.`);
|
||||
logger.debug(`Writing a diagnostic for ${language}, but the database at ${databasePath} does not exist yet.`);
|
||||
unwrittenDiagnostics.push({ diagnostic, language });
|
||||
}
|
||||
}
|
||||
|
|
@ -66,6 +66,7 @@ function writeDiagnostic(config, language, diagnostic) {
|
|||
}
|
||||
catch (err) {
|
||||
logger.warning(`Unable to write diagnostic message to database: ${err}`);
|
||||
logger.debug(JSON.stringify(diagnostic));
|
||||
}
|
||||
}
|
||||
/** Report if there are unwritten diagnostics and write them to the log. */
|
||||
|
|
@ -83,7 +84,7 @@ exports.logUnwrittenDiagnostics = logUnwrittenDiagnostics;
|
|||
/** Writes all unwritten diagnostics to disk. */
|
||||
function flushDiagnostics(config) {
|
||||
const logger = (0, logging_1.getActionsLogger)();
|
||||
logger.info(`Writing ${unwrittenDiagnostics.length} diagnostic(s) to database.`);
|
||||
logger.debug(`Writing ${unwrittenDiagnostics.length} diagnostic(s) to database.`);
|
||||
for (const unwritten of unwrittenDiagnostics) {
|
||||
writeDiagnostic(config, unwritten.language, unwritten.diagnostic);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue