minor fixes and send logs to diag service

Is it intentional, that you don't log the full object here or util.inspect got lost accidentally.