fixed logging to not be blocking and wasteful on datastore operations