mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
removed unecesssary logging
This commit is contained in:
@ -74,8 +74,6 @@ def _send_to_wigle(lines, api_key, donate=True, timeout=30):
|
|||||||
Uploads the file to wigle-net
|
Uploads the file to wigle-net
|
||||||
"""
|
"""
|
||||||
|
|
||||||
logging.info(lines)
|
|
||||||
|
|
||||||
dummy = StringIO()
|
dummy = StringIO()
|
||||||
|
|
||||||
for line in lines:
|
for line in lines:
|
||||||
@ -87,7 +85,6 @@ def _send_to_wigle(lines, api_key, donate=True, timeout=30):
|
|||||||
'Accept': 'application/json'}
|
'Accept': 'application/json'}
|
||||||
data = {'donate': 'on' if donate else 'false'}
|
data = {'donate': 'on' if donate else 'false'}
|
||||||
payload = {'file': dummy, 'type': 'text/csv'}
|
payload = {'file': dummy, 'type': 'text/csv'}
|
||||||
logging.info(dummy.getvalue())
|
|
||||||
try:
|
try:
|
||||||
res = requests.post('https://api.wigle.net/api/v2/file/upload',
|
res = requests.post('https://api.wigle.net/api/v2/file/upload',
|
||||||
data=data,
|
data=data,
|
||||||
@ -132,7 +129,6 @@ class Wigle(plugins.Plugin):
|
|||||||
Called in manual mode when there's internet connectivity
|
Called in manual mode when there's internet connectivity
|
||||||
"""
|
"""
|
||||||
if not self.ready or self.lock.locked():
|
if not self.ready or self.lock.locked():
|
||||||
logging.info("WIGLE: error with api key")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
from scapy.all import Scapy_Exception
|
from scapy.all import Scapy_Exception
|
||||||
|
Reference in New Issue
Block a user