fix race condition in logging initialization. go fmt