News:

  • August 06, 2026, 04:28:41 PM

Login with username, password and session length

Author Topic: $LastError timestamp?  (Read 11306 times)

ryanastiefes

  • Sr. Member
  • ****
  • Posts: 72
$LastError timestamp?
« on: January 06, 2021, 04:18:10 PM »
I'm trying to troubleshoot an issue which happens every once in a great while, in doing so I have found a piece to the puzzle in the System_Information/System_Status.Last_Error(s). Going further I can find the $LastErrorAddrx but cannot find the timestamp for it. Is the timestamp for $LastErrorx available or is it a wanted added feature?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6170
  • Yes Pinky, Do-more will control the world!
Re: $LastError timestamp?
« Reply #1 on: January 06, 2021, 04:37:20 PM »
I'm trying to troubleshoot an issue which happens every once in a great while, in doing so I have found a piece to the puzzle in the System_Information/System_Status.Last_Error(s). Going further I can find the $LastErrorAddrx but cannot find the timestamp for it. Is the timestamp for $LastErrorx available or is it a wanted added feature?

System errors are generally being set as the error result of an instruction. If you know what the instruction is, just add logic to capture the rising edge of the error bit and the you can count, timestamp, send yourself a message, or whatever.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

ryanastiefes

  • Sr. Member
  • ****
  • Posts: 72
Re: $LastError timestamp?
« Reply #2 on: January 06, 2021, 04:55:38 PM »
Thanks for the reply. I agree with that, but what about the problems you did not account for, such as the one I had, why go through with logging the error and the instruction but not the time?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6170
  • Yes Pinky, Do-more will control the world!
Re: $LastError timestamp?
« Reply #3 on: January 06, 2021, 05:28:48 PM »
Thanks for the reply. I agree with that, but what about the problems you did not account for, such as the one I had, why go through with logging the error and the instruction but not the time?

It really isn't a log, just the last error returned from an instruction. It honestly never occurred to me to treat it as such. The system and user logs do have time and date stamp. It wouldn't be hard to add and I'm happy to do so, but if it is important to the operation of the system, the user program should already be dealing with it directly.

"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

ryanastiefes

  • Sr. Member
  • ****
  • Posts: 72
Re: $LastError timestamp?
« Reply #4 on: January 06, 2021, 05:56:04 PM »
For sure, thanks for replying. Keep up the good work!