Skip to content

Commit

Permalink
- Fix #1567: Change crit to err log level for gettimeofday failure.
Browse files Browse the repository at this point in the history
git-svn-id: file:///svn/nsd/trunk@4786 a26ef69c-88ff-0310-839f-98b793d9c207
  • Loading branch information
wcawijngaards committed Oct 11, 2017
1 parent fe3510d commit e7a9dbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
11 October 2016: Wouter
- Fix #1567: Change crit to err log level for gettimeofday failure.

9 October 2016: Wouter
- Fix collision printout of nsec3 to print name, hash and reverse.

Expand Down
2 changes: 1 addition & 1 deletion netio.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ netio_current_time(netio_type *netio)
if (!netio->have_current_time) {
struct timeval current_timeval;
if (gettimeofday(&current_timeval, NULL) == -1) {
log_msg(LOG_CRIT, "gettimeofday: %s, aborting.", strerror(errno));
log_msg(LOG_ERR, "gettimeofday: %s, aborting.", strerror(errno));
abort();
}
timeval_to_timespec(&netio->cached_current_time, &current_timeval);
Expand Down

0 comments on commit e7a9dbf

Please sign in to comment.