improve logging test
try to log only once
polish