Wanted feature in logging or info about logging issue.

I have several VLANs on my routers, switches etc. IoT network, Gaming rigs, Work stuff, TV stuff etc…
I do also have multiple DHCP servers, all running on my primary MT router. (RB5009UGs)
Some updates ago I started having errors in my logs that is script related.
I have one or more scripts failing on one or more of my DHCP servers.
I do also have several errors related to other scripts.
But here is the thing…
I have 52 scripts, and 16 active schedules og 36 total schedules.
In the logs, the errors does not give me ANY clue about what script that failed, the best approach is sitting there for a long time to see if I can see when the timestamps changes, however, I havent had any luck pinpointing what the error is about.

What should have been added is the following.
When a script runs and fails, the error log in get some hint about what script that ran no matter if it is dhcp related, netwatch related or schedule related.

Some things have change so far in ROS 7.x that has triggered the script errors, the log entries (topic=script, error) still have absolutely no information about what script that failes.
I was hoping that logging to my syslog server would give more info…nope, same info as in internal log :stuck_out_tongue:

Perhaps I need to change/add something to enable more details in my logs?

Hi,

I have found script diagnostics leave a bit to be desired.

You can put something like:

:log info “script scriptname starting”
(perhaps also logging parameters if available)

and perhaps a similar entry near the scripts exit point(s)

With luck the most recent starting log entry will be associated with a later error.

Thanks alot for the input, at least that give a timestamp on the log entry error message that is the same as as the log info “start xxx starting” entry.
It makes it ALOT easier to pinpoint what script fails :slight_smile:

Now if was a way to get more info about what failed, that would be awsome :sunglasses:

You may want to add custom info into your script flow. I.e.

:if (whatever) :log info "script X failed on Y"