def new_message(self, topic, body, bonusHeaders, when):
        """Called when a new message arrives"""
        self.logger.debug((topic, body, bonusHeaders, ) % "Got message on topic %s: %s (headers: %s)")

        gcc_topic = radioDns.convert_fm_topic_to_gcc(topic)
        # Save to mysql
        radioDns.add_log(gcc_topic, body, bonusHeaders, int(time.time()))

        # B: Update last message
        realTopic = '/'.join(gcc_topic.split('/')[:-1]) + '/'
        self.logger.debug("Real topic of %s is %s" % (topic, realTopic))

        with self.channels_lock:
            self.channels_last_message[realTopic] = when
            self.logger.debug("Last message for %s is now %s" % (realTopic, self.channels_last_message[realTopic], ))
dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/fallback.py/Fallback.new_message/swapped operands of `%`