removed .Error() in logger, removed mutex to set logger