Add date output to keepalive

Helps track when there is a log follow in "-o cat" mode.
This commit is contained in:
Joshua Boniface 2021-07-10 23:24:59 -04:00
parent 20b66c10e1
commit f00c4d07f4
1 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,7 @@ import yaml
import json
from socket import gethostname
from datetime import datetime
from threading import Thread
from ipaddress import ip_address, ip_network
from apscheduler.schedulers.background import BackgroundScheduler
@ -1878,9 +1879,10 @@ def node_keepalive():
else:
cst_colour = fmt_cyan
logger.out(
'{}{} keepalive{} [{}{}{}]'.format(
'{}{} keepalive @ {}{} [{}{}{}]'.format(
fmt_purple,
myhostname,
datetime.now(),
fmt_end,
fmt_bold + cst_colour,
this_node.router_state,