Skip to content

Commit

Permalink
Downgrade log levels for some messages to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg committed Apr 12, 2024
1 parent 93f93fc commit efc4746
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions lib/diagnostics.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/diagnostics.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
);

Expand Down Expand Up @@ -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));
}
}

Expand All @@ -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.`,
);

Expand Down

0 comments on commit efc4746

Please sign in to comment.