Skip to content

Commit

Permalink
Merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Jan 15, 2021
2 parents 73d3b22 + 49d3a08 commit 25ff3b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/smtp/src/SmtpAppender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ export class SmtpAppender extends BaseAppender {
}

protected sendBuffer() {
const {config, logEventBuffer, layout, subjectLayout, transport} = this;
const {config, logEventBuffer, subjectLayout, transport} = this;

if (logEventBuffer.length > 0) {
const firstEvent = logEventBuffer[0];
let body = "";
const count = logEventBuffer.length;
while (logEventBuffer.length > 0) {
body += `${layout(logEventBuffer.shift(), config.timezoneOffset)}\n`;
body += `${this.layout(logEventBuffer.shift(), config.timezoneOffset)}\n`;
}

const msg: any = {
Expand Down

0 comments on commit 25ff3b8

Please sign in to comment.