Skip to content

Commit

Permalink
chore: Log the wakeup too
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
  • Loading branch information
berezovskyi committed Jul 17, 2023
1 parent a7c6ae6 commit 47ffa1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions publisher.zig
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ fn pushRepoChange(log_repo_path: []const u8) !void {
const sleep_min = 15;
std.log.info("Sleeping for {} min between pushes", .{sleep_min});
std.time.sleep(@as(u64, sleep_min * 60) * std.time.ns_per_s);
// Logging due to https://github.com/ziglang/zig/blob/c6aa29b6fdba1606bfd218b17de89f64179c0ed8/lib/std/time.zig#L10
std.log.info("Wakeup", .{sleep_min});
}

fn formatRepoLogFilename(buf: []u8, year_day: epoch.YearAndDay, month_day: epoch.MonthAndDay) usize {
Expand Down

0 comments on commit 47ffa1f

Please sign in to comment.