So, I’m dumping something to the log and I’ll be dogged if I can figure out where I’m doing it??!?!
Here’s a snippet from the log:
9 Sep 15:01:01 - [warn] [function:Convert Uptime Seconds] end of converting uptime seconds
[ '17 days', ' 22:40:14.700000' ]
9 Sep 15:02:01 - [warn] [function:Convert Uptime Seconds] convertUptimeSecondsToString - start
9 Sep 15:02:01 - [warn] [function:Convert Uptime Seconds] convertUptimeSecondsToString - end
9 Sep 15:02:01 - [warn] [function:Convert Uptime Seconds] end of converting uptime seconds
[ '17 days', ' 22:41:14.730000' ]
9 Sep 15:03:01 - [warn] [function:Convert Uptime Seconds] convertUptimeSecondsToString - start
9 Sep 15:03:01 - [warn] [function:Convert Uptime Seconds] convertUptimeSecondsToString - end
9 Sep 15:03:01 - [warn] [function:Convert Uptime Seconds] end of converting uptime seconds
[ '17 days', ' 22:42:14.770000' ]
It’s the bolded, italicized output I can’t find!?
I recognized the data - it’s the uptime of the router. It’s transmitted in seconds and I have a routine that converts it to days, hours, minutes, etc.
That’s my data!?!? Only for the life of me, I cannot find where it’s being logged! All of my logging (I think) is done with “node.warn()” or “node.error(), node.status()” etc. Hence the log lines start with the date and time. But note the problem line does NOT have the date and time stamp.
Does anyone recognize a possible node-red function I could be calling that would log an entry withOUT the date and time stamp?
This is what I’m using on my Pi4 to dump the logfile: sudo journalctl -f -u nodered -o cat
I’m being a dummy and I’m not sure why! thanks