Add errro variable to logging output on failed eval call.
Only use datetime from TPV if available.