Fix a race condition with take()
update logger type