Fix hardcoded

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Fix logic typo

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>
Merge pull request #2 from bogdando/logging_fixes

Fix hardcoded