Fixing logging
Modified typo
Log only if asked