diff --git a/src/index.ts b/src/index.ts index 1b90886..82027ab 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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()); } }