Applying edewit comment on duplicated log statement