From ebeaec4a8abbc8908a3924a1407593aba7c9f070 Mon Sep 17 00:00:00 2001 From: Rosen Vladimirov Date: Sun, 24 Feb 2019 11:10:00 +0200 Subject: [PATCH] fix: print messages from hooks only with `--log trace` Currently several messages from hooks are printed as warnings or information messages. They do not have any information for the users, so move them to the trace output. --- lib/after-watch.js | 2 +- lib/before-prepare.js | 2 +- lib/watch.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/after-watch.js b/lib/after-watch.js index 63102d5..63381bf 100644 --- a/lib/after-watch.js +++ b/lib/after-watch.js @@ -3,7 +3,7 @@ var compiler = require('./compiler'); module.exports = function ($logger) { var tsc = compiler.getTscProcess(); if (tsc) { - $logger.info("Stopping tsc watch"); + $logger.trace("Stopping tsc watch"); tsc.kill("SIGINT") } } diff --git a/lib/before-prepare.js b/lib/before-prepare.js index ee41c5f..0524a96 100644 --- a/lib/before-prepare.js +++ b/lib/before-prepare.js @@ -6,7 +6,7 @@ module.exports = function ($logger, $projectData, $options, hookArgs) { var bundle = $options.bundle || appFilesUpdaterOptions.bundle; if (liveSync || bundle) { - $logger.warn("Hook skipped because either bundling or livesync is in progress.") + $logger.trace("Hook skipped because either bundling or livesync is in progress.") return; } diff --git a/lib/watch.js b/lib/watch.js index 8e2cde4..c6191fd 100644 --- a/lib/watch.js +++ b/lib/watch.js @@ -4,7 +4,7 @@ module.exports = function ($logger, $projectData, $errors, hookArgs) { if (hookArgs.config) { const appFilesUpdaterOptions = hookArgs.config.appFilesUpdaterOptions; if (appFilesUpdaterOptions.bundle) { - $logger.warn("Hook skipped because bundling is in progress.") + $logger.trace("Hook skipped because bundling is in progress.") return; } }