From 8e670f86fc4c3babb195631247a6cf9bcc9a847f Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Fri, 12 Jan 2018 09:02:54 +0100 Subject: [PATCH] edit packet.py --- boswatch/packet/packet.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/boswatch/packet/packet.py b/boswatch/packet/packet.py index ba09e1a..d2f3670 100644 --- a/boswatch/packet/packet.py +++ b/boswatch/packet/packet.py @@ -93,11 +93,10 @@ class Packet: self.set("serverBuildDate", version.date) self.set("serverBranch", version.branch) - @staticmethod - def infoToLog(bwPacket): + def infoToLog(self): """!Print a info message to the log on INFO level. Contains the most useful info about this packet. @todo not complete yet - must be edit to print nice formatted messages on console @param bwPacket: BOSWatch packet instance""" - logging.info("%s packet received", bwPacket.get("mode")) + logging.info("%s packet received", self.get("mode"))