moving logging above local settings import