Skip to content

Commit c59e8de

Browse files
authored
Merge pull request #8379 from IgniteUI/bpenkov/migrations-msg-tracing
Do not log if traceToConsole is false
2 parents 26cc165 + cf5ecc7 commit c59e8de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/igniteui-angular/migrations/common/tsLogger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export class Logger implements ts.server.Logger {
2323
}
2424

2525
public msg(s: string, type: ts.server.Msg = ts.server.Msg.Err) {
26+
if (!this.traceToConsole) { return; }
2627
if (type === ts.server.Msg.Info) {
27-
// TODO: Info ignored for now, hook into context in the future
28-
// console.log(s);
28+
console.log(s);
2929
}
3030
if (type === ts.server.Msg.Err) {
3131
console.error(s);

0 commit comments

Comments
 (0)