Fixing warning in logger, fixing declaration of variables with initial defaults