Log get_state_from_host to a file

The scope of this function has now expanded causing lots more log
output after the ci tests has completed, this can make it difficult to
find the point where a CI test failed, directing most of it to a file
will make the situation better.

Change-Id: Ibd65079a00a8d0c361f9d3422e8efcdf6a962cef
Merge "Log get_state_from_host to a file"