removed unecesssary logging

This commit is contained in:
Danko
2021-08-03 19:41:09 +02:00
parent 4e7a28dc29
commit a489266744

View File

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