gen_server fixes in logger