Skip to content

Commit 2ab7271

Browse files
authored
Merge pull request #1282 from NativeScript/trifonov/sbg-js-parser-call-update
JS Parser/SBG improvements
2 parents 34d3c85 + 680f0c8 commit 2ab7271

8 files changed

Lines changed: 975 additions & 1134 deletions

File tree

test-app/build-tools/jsparser/helpers/logger.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = function (setting) {
77
var logDirectory = path.dirname(setting.logPath);
88

99
// TODO: Logging to file disabled temporarily, console output is default
10-
10+
1111
// if (!fs.existsSync(logDirectory)) {
1212
// console.error("couldn't find logDirectory so it will be created in place:" + setting.logPath);
1313
// fileHelpers.ensureDirectories(setting.logPath);
@@ -24,7 +24,9 @@ module.exports = function (setting) {
2424

2525
if (setting.disable) {
2626
for (var prop in appLog) {
27-
appLog[prop] = function () { };
27+
if((prop != 'error' && prop != 'warn') || !setting.showErrorsAndWarnings) {
28+
appLog[prop] = function () { };
29+
}
2830
}
2931
}
3032

0 commit comments

Comments
 (0)