Skip to content

Commit

Permalink
Fix a regression where messages were not being printed to the console
Browse files Browse the repository at this point in the history
  • Loading branch information
octogonz committed Apr 12, 2019
1 parent 8b09db5 commit 5beaa71
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/api-extractor/src/collector/MessageRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,14 @@ export class MessageRouter {
return;
}

// Assign the ExtractorMessage.logLevel; the message callback may adjust it below
if (message.category === ExtractorMessageCategory.Console) {
// Console messages have their category log level assigned via logInfo(), logVerbose(), etc.
} else {
const reportingRule: IReportingRule = this._getRuleForMessage(message);
message.logLevel = reportingRule.logLevel;
}

if (this._messageCallback) {
this._messageCallback(message);

Expand Down

0 comments on commit 5beaa71

Please sign in to comment.