mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
refactor: wrong logging. -> logger.
This commit is contained in:
+2
-2
@@ -13,7 +13,7 @@ class Payload():
|
||||
|
||||
|
||||
def init(self) -> bool:
|
||||
logging.info("-[ Payload: {}".format(self.payload_path))
|
||||
logger.info("-[ Payload: {}".format(self.payload_path))
|
||||
if not os.path.exists(self.payload_path):
|
||||
logger.error("Payload file does not exist: {}".format(self.payload_path))
|
||||
return False
|
||||
@@ -21,6 +21,6 @@ class Payload():
|
||||
with open(self.payload_path, 'rb') as f:
|
||||
self.payload_data = f.read()
|
||||
|
||||
logging.info(" Size: {} bytes".format(len(self.payload_data)))
|
||||
logger.info(" Size: {} bytes".format(len(self.payload_data)))
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user