nit: probably we can put actual error object into log too.