Fix logging bug related to log level.
Remove a flex warning in unused code by disabling that code.