I will recommend to call `log.error()` then calling the callback with the error in the following line.