[Security] fix typo and remove unused logger