Skip to content

Commit

Permalink
Make debug output go to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
andywilkinshmcts committed Aug 22, 2024
1 parent 7a8bab6 commit 3204139
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 349 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/rpx-xui-node-lib",
"version": "2.29.1",
"version": "2.29.2-output-stdout",
"description": "Common nodejs library components for XUI",
"main": "dist/index",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/common/util/debug.logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export const getLogger = (namespace: string, delimiter = ':'): XuiLogger => {
}
logger = cache.get(newNamespace) as debug.Debugger
})

// Make everything go to stdout so that AppInsights will pick it up in Traces
logger.log = console.info.bind(console);

Check failure on line 26 in src/common/util/debug.logger.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`
return {
log: logger,
warn: logger,
Expand Down
Loading

0 comments on commit 3204139

Please sign in to comment.