Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Nov 30, 2024
1 parent f9ffb4b commit 609ea24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class HapClient extends EventEmitter {
const error = new Error();
const stackLines = error.stack.split('\n');
const callerInfo = stackLines[2]; // Line 2 contains the caller information
this.logger.log(msg + ' @ ' + callerInfo);
this.logger.log(msg + ' @ ' + callerInfo.trim());
}
}

Expand Down

0 comments on commit 609ea24

Please sign in to comment.