Disable "Max time expired" warning in event log

Is there a way to disable this message from being added to the event log.
I need the max time on the waitwobj instruction to do some checks in the error handler, but I don’t want this message to spam the event log.

40538: Max Time Expired

Description

Task: T_ROB1.The programmed waiting time has expired.Program ref: /M_Motion/Place_ConveyorTr**acking/WaitWObj/90.

Actions
Recovery: ERR_WAIT_MAXTIME.

Are you using TimeFlag? Like this:

WaitUntil diClosed_A=0\MaxTime:=2\TimeFlag:=bAdvancedFlag;
IF bAdvancedFlag RAISE erStillAdvanced;

If that optional argument is available for WaitWobj.

Yes, this optional argument is available for WaitWobj.
I will try to add it and see if this solves my problem.