fix log level application logic