Skip to content

Commit ea61410

Browse files
committed
tamp down this message to only when debug mode is on
1 parent 01644c7 commit ea61410

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

core/lib/annotation_exporter.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ var annotations_exporter = function (pl) {
1616
try {
1717
var oldAnnotations = fs.readFileSync(path.resolve(paths.source.annotations, 'annotations.js'), 'utf8');
1818
} catch (ex) {
19-
console.log('annotations.js file missing from ' + paths.source.annotations + '. This may be expected.');
19+
if (pl.config.debug) {
20+
console.log('annotations.js file missing from ' + paths.source.annotations + '. This may be expected.');
21+
}
2022
return [];
2123
}
2224

@@ -43,7 +45,9 @@ var annotations_exporter = function (pl) {
4345
try {
4446
annotationsMD = fs.readFileSync(path.resolve(paths.source.annotations, 'annotations.md'), 'utf8');
4547
} catch (ex) {
46-
console.log('annotations.md file missing from ' + paths.source.annotations + '. This may be expected.');
48+
if (pl.config.debug) {
49+
console.log('annotations.md file missing from ' + paths.source.annotations + '. This may be expected.');
50+
}
4751
return [];
4852
}
4953

0 commit comments

Comments
 (0)