add a log to track errors