def _do_default(self, line):
        service_stats = self.logger.infoStatistics(stanza="service")
        ns_stats = self.logger.infoStatistics(stanza="namespace")
        for timestamp in sorted(service_stats.keys()):
            features = {}
            for node, stats in service_stats[timestamp].iteritems():
                features[node] = {}
                features[node]["KVS"] = "NO"
                try:
                    if int(
                            stats["stat_read_reqs"]) > 0 or int(
                            stats["stat_write_reqs"]) > 0:
                        features[node]["KVS"] = "YES"
                except:
                    pass

                features[node]["UDF"] = "NO"
                try:
                    if int(
                            stats["udf_read_reqs"]) > 0 or int(
                            stats["udf_write_reqs"]) > 0:
                        features[node]["UDF"] = "YES"
                except:
                    pass

                features[node]["BATCH"] = "NO"
                try:
                    if int(stats["batch_initiate"]) > 0:
                        features[node]["BATCH"] = "YES"
                except:
                    pass

                features[node]["SCAN"] = "NO"
                try:
                    if int(stats["tscan_initiate"]) > 0:
                        features[node]["SCAN"] = "YES"
                except:
                    pass

                features[node]["SINDEX"] = "NO"
                try:
                    if 0 > int(stats["sindex-used-bytes-memory"]):
                        features[node]["SINDEX"] = "YES"
                except:
                    pass

                features[node]["QUERY"] = "NO"
                try:
                    if int(
                            stats["query_reqs"]) > 0 or int(
                            stats["query_success"]) > 0:
                        features[node]["QUERY"] = "YES"
                except:
                    pass

                features[node]["AGGREGATION"] = "NO"
                try:
                    if int(
                            stats["query_agg"]) > 0 or int(
                            stats["query_agg_success"]) > 0:
                        features[node]["AGGREGATION"] = "YES"
                except:
                    pass

                try:
                    if (timestamp in ns_stats):
                        namespace_stats = ns_stats[timestamp]
                        for ns in namespace_stats:
                            features[node]["LDT(%s)"%(ns)] = "NO"
                            try:
                                if int(namespace_stats[ns][node].get("ldt-writes","0")) > 0 or int(namespace_stats[ns][node].get("ldt_writes","0")) > 0 or int(
                                        namespace_stats[ns][node].get("ldt-reads","0")) > 0 or int(namespace_stats[ns][node].get("ldt_reads","0")) > 0 or int(
                                        namespace_stats[ns][node].get("ldt-deletes","0")) > 0 or int(namespace_stats[ns][node].get("ldt_deletes","0")) > 0:
                                        features[node]["LDT(%s)" % (ns)] = "YES"
                            except:
                                pass
                except:
                    pass

                features[node]["XDR ENABLED"] = "NO"
                try:
                    if int(stats["stat_read_reqs_xdr"]) > 0:
                        features[node]["XDR ENABLED"] = "YES"
                except:
                    pass

                features[node]["XDR DESTINATION"] = "NO"
                try:
                    if int(stats["stat_write_reqs_xdr"]) > 0:
                        features[node]["XDR DESTINATION"] = "YES"
                except:
                    pass

            self.view.showConfig(
                "(%s) Features" %
                (timestamp),
                features,
                self.logger.get_log_snapshot(timestamp=timestamp),
                **self.mods)
dataset/ETHPy150Open aerospike/aerospike-admin/lib/logcontroller.py/FeaturesController._do_default/swapped operands of `>`