Fix error logging local-server