Fix compile with enabled debug logging