edit packet.py

This commit is contained in:
Bastian Schroll 2018-01-12 09:02:54 +01:00
parent a955058edd
commit 8e670f86fc

View file

@ -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"))