Skip to content

Commit

Permalink
remove unnecessary newline from log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Sep 10, 2023
1 parent 840c645 commit 9e81e3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn getRecordFile(config: Config) ?std.fs.File {

if (config.record_session_path) |record_path| {
if (std.fs.createFileAbsolute(record_path, .{})) |file| {
logger.info("recording to {s}\n", .{record_path});
logger.info("recording to {s}", .{record_path});
return file;
} else |err| {
logger.err("failed to create record file at {s}: {}", .{ record_path, err });
Expand All @@ -65,7 +65,7 @@ fn getReplayFile(config: Config) ?std.fs.File {
const replay_path = config.replay_session_path orelse config.record_session_path orelse return null;

if (std.fs.openFileAbsolute(replay_path, .{})) |file| {
logger.info("replaying from {s}\n", .{replay_path});
logger.info("replaying from {s}", .{replay_path});
return file;
} else |err| {
logger.err("failed to open replay file at {s}: {}", .{ replay_path, err });
Expand Down Expand Up @@ -236,7 +236,7 @@ fn parseArgs(allocator: std.mem.Allocator) !ParseArgsResult {
}
if (specified.get(.@"enable-message-tracing")) {
result.message_tracing_enabled = true;
logger.info("Enabled message tracing.\n", .{});
logger.info("Enabled message tracing.", .{});
}
if (specified.get(.@"config-path")) {
std.debug.assert(result.config_path != null);
Expand Down

0 comments on commit 9e81e3d

Please sign in to comment.