Skip to content

Commit

Permalink
Issue #63: fixed incorrect syslog timestamp side.
Browse files Browse the repository at this point in the history
  • Loading branch information
fgm committed Jun 27, 2019
1 parent a79dd65 commit 9b36c14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Senders/SyslogSender.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Senders/SyslogSender.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Senders/SyslogSender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import modernSyslog = require("modern-syslog");
import * as path from "path";
import * as util from "util";
import {IContext, KEY_TS} from "../IContext";
import {IContext, ITimestamps, KEY_TS} from "../IContext";
import {Logger} from "../Loggers/Logger";
import {ServerLogger} from "../Loggers/ServerLogger";
import {ServerSide} from "../Loggers/ServerLogger";
import * as LogLevel from "../LogLevel";
import {ISender} from "./ISender";

Expand Down Expand Up @@ -105,7 +105,7 @@ class SyslogSender implements ISender {
}

// doc.context.timestamp.server is known to exist from above.
Logger.stamp(doc.context, "send", ServerLogger.side);
Logger.stamp(doc.context, "send", ServerSide as keyof ITimestamps);
this.syslog.log(level, this.serialize(doc));
}

Expand Down

0 comments on commit 9b36c14

Please sign in to comment.