add timestamps, client ip & name, pid to mdsip error logs, equivalent to "access" logs #2789
Labels
duplicate
There exists similar issues, pull requests, or discussions
feature
Indicates new feature requests or implementations
tool/mdsip
Relates to one of the MDSplus over IP tools (mdsipd, mdsipsd, mdsip_server)
Affiliation
Tokamak Energy, 173 Brook Dr, Milton, Abingdon, UK
Description
MDSplus mdsip error logs are stored (by default) at /var/log/mdsplus/mdsipd/errors. The log entries do not have timestamps, process id, client ip - and this makes it much harder to troubleshoot connectivity problems. This is in contrast to /var/log/mdsplus/mdsipd/access entries which had all this information
Example
I don't have a pseudocode but I am happy to implement the feature myself and submit it to a merge review if you point me in the right direction in your massive code base. Here are examples of a well-structure entries in "access" file and non-informative entries in "errors" file:
$ tail -1 /var/log/mdsplus/mdsipd/access
Wed Jun 12 09:07:12 2024 (0) (pid 1602200) Connection received from peter. ...REDACTED...@s...REDACTED....local [192....REDACTED-IP...]
$ tail -1 /var/log/mdsplus/mdsipd/errors
Connected: James....REDACTED-lastname
Notice how the error logs are more or less useless.
Additional context
Thank you in advance
The text was updated successfully, but these errors were encountered: