Skip to content

Commit efc4746

Browse files
committed
Downgrade log levels for some messages to debug
1 parent 93f93fc commit efc4746

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

lib/diagnostics.js

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/diagnostics.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/diagnostics.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function addDiagnostic(
107107
if (existsSync(databasePath)) {
108108
writeDiagnostic(config, language, diagnostic);
109109
} else {
110-
logger.info(
110+
logger.debug(
111111
`Writing a diagnostic for ${language}, but the database at ${databasePath} does not exist yet.`,
112112
);
113113

@@ -146,6 +146,7 @@ function writeDiagnostic(
146146
writeFileSync(jsonPath, JSON.stringify(diagnostic));
147147
} catch (err) {
148148
logger.warning(`Unable to write diagnostic message to database: ${err}`);
149+
logger.debug(JSON.stringify(diagnostic));
149150
}
150151
}
151152

@@ -167,7 +168,7 @@ export function logUnwrittenDiagnostics() {
167168
/** Writes all unwritten diagnostics to disk. */
168169
export function flushDiagnostics(config: Config) {
169170
const logger = getActionsLogger();
170-
logger.info(
171+
logger.debug(
171172
`Writing ${unwrittenDiagnostics.length} diagnostic(s) to database.`,
172173
);
173174

0 commit comments

Comments
 (0)