Skip to content

Commit

Permalink
Remove logging of message objects which cannot be processed
Browse files Browse the repository at this point in the history
  • Loading branch information
bryaningl3 committed Dec 1, 2023
1 parent dc296ac commit 4a288c8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion lib/connection/Connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ module.exports = (() => {
if (parsed.type) {
processMarketMessage(parsed);
} else {
__logger.log(message);
__logger.log('Message parser failed to assign the message type');
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions lib/marketState/MarketState.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ module.exports = (() => {

if (!p && message.type !== 'REFRESH_QUOTE') {
_logger.warn(`MarketState [ ${_instance} ]: No profile found for [ ${symbol} ]`);
_logger.log(message);

return;
}
Expand Down Expand Up @@ -731,7 +730,6 @@ module.exports = (() => {
break;
default:
_logger.error(`MarketState [ ${_instance} ]: Unhandled Market Message`);
_logger.error(message);

break;
}
Expand Down
3 changes: 0 additions & 3 deletions lib/utilities/parse/ddf/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,6 @@ module.exports = (() => {

break;
}
default:
console.log(msg);
break;
}
}

Expand Down

0 comments on commit 4a288c8

Please sign in to comment.