Skip to content

Commit

Permalink
decrease the log level in getReliableTime to debug from info
Browse files Browse the repository at this point in the history
  • Loading branch information
tavisrudd committed Aug 11, 2017
1 parent 285df10 commit a1163d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/getReliableTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const getNetworkTime = Promise.promisify(_getNetworkTime);
const getReliableTime = (): Promise<Date> =>
getNetworkTime("pool.ntp.org", 123)
.catch((e) => {
logger.info('error in getNetworkTime. Retrying', e=e)
logger.debug('error in getNetworkTime. Retrying', e=e)
return getNetworkTime("pool.ntp.org", 123)
}).catch((e) => {
logger.info('error in getNetworkTime. Falling back to new Date()', e=e)
logger.debug('error in getNetworkTime. Falling back to new Date()', e=e)
return new Date();
});

Expand Down

0 comments on commit a1163d4

Please sign in to comment.