Skip to content

Commit d6a3c58

Browse files
committed
changed print statements to logging.info
1 parent 4af3f7c commit d6a3c58

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

MacAttack.pyw

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TODO:
22
# Clean up code, remove redundancy
3-
VERSION = "4.7.0"
3+
VERSION = "4.7.1"
44
import semver
55
import urllib.parse
66
import webbrowser
@@ -2653,7 +2653,7 @@ class MacAttack(QMainWindow):
26532653
# Update self.customprefix with the currently selected prefix
26542654
self.customprefix = self.prefix_dropdown.currentText()
26552655
self.customprefix = self.customprefix.replace(' (default)', '') #remove default
2656-
print(f"Updated customprefix: {self.customprefix}")
2656+
logging.info(f"Updated customprefix: {self.customprefix}")
26572657

26582658

26592659
def set_portal_type_detected(self, index):
@@ -3359,12 +3359,12 @@ class MacAttack(QMainWindow):
33593359
selected_proxy = None
33603360
if not selected_proxy: # Check only if no proxy is already set
33613361
if alt_speed_enabled:
3362-
print("No proxy assigned")
3362+
logging.info("No proxy assigned")
33633363
if not self.proxy_queue: # If the deque is empty
3364-
print("All proxies are used up, exiting thread.")
3364+
logging.info("All proxies are used up, exiting thread.")
33653365
break # Exit the thread if no proxies are left
33663366
selected_proxy = self.proxy_queue.popleft()
3367-
print(f"{selected_proxy} chosen from deque")
3367+
logging.info(f"{selected_proxy} chosen from deque")
33683368
else:
33693369
# Only choose a random proxy if alt_speed_enabled is not checked
33703370
selected_proxy = random.choice(proxies)
@@ -4219,7 +4219,7 @@ class MacAttack(QMainWindow):
42194219
f"Error for Portal: <b>503 Rate Limited</b> {selected_proxy}"
42204220
)
42214221
if self.temp_remove_proxy(selected_proxy): # Temp remove the proxy
4222-
print("RATELIMITED ALT METHOD")
4222+
logging.info("RATELIMITED ALT METHOD")
42234223
time.sleep(self.remove_for_seconds_spinbox.value()) #sleep the thread if alt speed enabled
42244224

42254225
elif "ERR_ACCESS_DENIED" in res.text:

0 commit comments

Comments
 (0)