Added device hostname to logging wherever possible.