[PATCH v2 3/4] log: Handle errors from clock_gettime()