Skip to content

Commit

Permalink
Logging resources only in nortable events
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jun 2, 2024
1 parent cfd2acc commit 8b24796
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32598,7 +32598,9 @@ async function run() {
const { ok, done, logs } = report;
for (const { severity, message, resource } of logs) {
(0, import_core3.info)(colorize(severity, message));
resource && (0, import_core3.info)(JSON.stringify(resource, null, 2));
if (severity != "info" && resource) {
(0, import_core3.info)(JSON.stringify(resource, null, 2));
}
}
if (done) {
shouldStop = true;
Expand Down
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ async function run(): Promise<void> {

for (const { severity, message, resource } of logs) {
info(colorize(severity, message));
resource && info(JSON.stringify(resource, null, 2));
if ((severity != 'info') && resource) {
info(JSON.stringify(resource, null, 2));
}
}

if (done) {
Expand Down

0 comments on commit 8b24796

Please sign in to comment.