File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,6 @@ log.errorHandler.startCatching({
3131
3232log . initialize ( ) ;
3333
34- export const pythonInstanceLogger = log . scope ( "python-instance " ) ;
34+ export const pythonRpcLogger = log . scope ( "python-rpc " ) ;
3535export const logger = log . scope ( "main" ) ;
3636export const achievementsLogger = log . scope ( "achievements" ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import fs from "node:fs";
55import path from "node:path" ;
66import crypto from "node:crypto" ;
77
8- import { logger } from "./logger" ;
8+ import { pythonRpcLogger } from "./logger" ;
99import { Readable } from "node:stream" ;
1010import { app , dialog } from "electron" ;
1111
@@ -39,7 +39,7 @@ export class PythonRPC {
3939 if ( ! readable ) return ;
4040
4141 readable . setEncoding ( "utf-8" ) ;
42- readable . on ( "data" , logger . log ) ;
42+ readable . on ( "data" , pythonRpcLogger . log ) ;
4343 }
4444
4545 public static spawn (
@@ -100,7 +100,7 @@ export class PythonRPC {
100100
101101 public static kill ( ) {
102102 if ( this . pythonProcess ) {
103- logger . log ( "Killing python process" ) ;
103+ pythonRpcLogger . log ( "Killing python process" ) ;
104104 this . pythonProcess . kill ( ) ;
105105 this . pythonProcess = null ;
106106 }
You can’t perform that action at this time.
0 commit comments