We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7caa2 commit eaebafbCopy full SHA for eaebafb
3 files changed
test-app/build-tools/jsparser/helpers/logger.js
@@ -7,7 +7,7 @@ module.exports = function (setting) {
7
var logDirectory = path.dirname(setting.logPath);
8
9
// TODO: Logging to file disabled temporarily, console output is default
10
-
+
11
// if (!fs.existsSync(logDirectory)) {
12
// console.error("couldn't find logDirectory so it will be created in place:" + setting.logPath);
13
// fileHelpers.ensureDirectories(setting.logPath);
@@ -24,7 +24,9 @@ module.exports = function (setting) {
24
25
if (setting.disable) {
26
for (var prop in appLog) {
27
- appLog[prop] = function () { };
+ if(prop != 'error' || !setting.showErrorLogs) {
28
+ appLog[prop] = function () { };
29
+ }
30
}
31
32
0 commit comments