File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed
Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @triplex/server " : patch
3+ ---
4+
5+ Add logging around APIs / messages.
Original file line number Diff line number Diff line change 1+ ---
2+ " @triplex/websocks-server " : patch
3+ ---
4+
5+ Add ` UNSAFE_use ` api that is called for every message recieved.
Original file line number Diff line number Diff line change 1+ ---
2+ " triplex-vsce " : patch
3+ ---
4+
5+ Sentry integrations have been turned on to hopefully provide more insight into call stack exceptions.
Original file line number Diff line number Diff line change 44 * This repository utilizes multiple licenses across different directories. To
55 * see this files license find the nearest LICENSE file up the source tree.
66 */
7+ /* eslint-disable no-console */
78
89export function createForkLogger ( scope : string ) {
910 return {
1011 debug : ( ...msg : string [ ] ) => {
12+ console . debug ( `[${ scope } ]` , ...msg ) ;
1113 process . send ?.( {
1214 log : {
1315 message : msg ,
@@ -17,6 +19,7 @@ export function createForkLogger(scope: string) {
1719 } ) ;
1820 } ,
1921 error : ( ...msg : string [ ] ) => {
22+ console . error ( `[${ scope } ]` , ...msg ) ;
2023 process . send ?.( {
2124 log : {
2225 message : msg ,
@@ -26,6 +29,7 @@ export function createForkLogger(scope: string) {
2629 } ) ;
2730 } ,
2831 info : ( ...msg : string [ ] ) => {
32+ console . info ( `[${ scope } ]` , ...msg ) ;
2933 process . send ?.( {
3034 log : {
3135 message : msg ,
You can’t perform that action at this time.
0 commit comments