clean up log statement, compare nogit as a string, not boolean