Add date output to keepalive
Helps track when there is a log follow in "-o cat" mode.
This commit is contained in:
parent
20b66c10e1
commit
f00c4d07f4
|
@ -32,6 +32,7 @@ import yaml
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from socket import gethostname
|
from socket import gethostname
|
||||||
|
from datetime import datetime
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from ipaddress import ip_address, ip_network
|
from ipaddress import ip_address, ip_network
|
||||||
from apscheduler.schedulers.background import BackgroundScheduler
|
from apscheduler.schedulers.background import BackgroundScheduler
|
||||||
|
@ -1878,9 +1879,10 @@ def node_keepalive():
|
||||||
else:
|
else:
|
||||||
cst_colour = fmt_cyan
|
cst_colour = fmt_cyan
|
||||||
logger.out(
|
logger.out(
|
||||||
'{}{} keepalive{} [{}{}{}]'.format(
|
'{}{} keepalive @ {}{} [{}{}{}]'.format(
|
||||||
fmt_purple,
|
fmt_purple,
|
||||||
myhostname,
|
myhostname,
|
||||||
|
datetime.now(),
|
||||||
fmt_end,
|
fmt_end,
|
||||||
fmt_bold + cst_colour,
|
fmt_bold + cst_colour,
|
||||||
this_node.router_state,
|
this_node.router_state,
|
||||||
|
|
Loading…
Reference in New Issue