Skip to content

Commit

Permalink
fix: Add proper timestamps to server logs (#2406)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Jun 7, 2024
1 parent 679d428 commit 28a75ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const SUPPORTED_LOG_TYPES = {
getter: (self) => {
self.assertFeatureEnabled(GET_SERVER_LOGS_FEATURE);
return log.unwrap().record.map((x) => ({
timestamp: Date.now(),
timestamp: /** @type {any} */ (x).timestamp ?? Date.now(),
level: 'ALL',
message: _.isEmpty(x.prefix) ? x.message : `[${x.prefix}] ${x.message}`,
}));
Expand Down

0 comments on commit 28a75ef

Please sign in to comment.