mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Do not check internet connection on the postponed telemetry // Resolve #4706
This commit is contained in:
@ -27,7 +27,7 @@ import requests
|
|||||||
from platformio import __title__, __version__, app, exception, fs, util
|
from platformio import __title__, __version__, app, exception, fs, util
|
||||||
from platformio.cli import PlatformioCLI
|
from platformio.cli import PlatformioCLI
|
||||||
from platformio.debug.config.base import DebugConfigBase
|
from platformio.debug.config.base import DebugConfigBase
|
||||||
from platformio.http import HTTPSession, ensure_internet_on
|
from platformio.http import HTTPSession
|
||||||
from platformio.proc import is_ci
|
from platformio.proc import is_ci
|
||||||
|
|
||||||
KEEP_MAX_REPORTS = 100
|
KEEP_MAX_REPORTS = 100
|
||||||
@ -363,8 +363,6 @@ def postpone_events(events):
|
|||||||
|
|
||||||
|
|
||||||
def process_postponed_logs():
|
def process_postponed_logs():
|
||||||
if not ensure_internet_on():
|
|
||||||
return None
|
|
||||||
events = load_postponed_events()
|
events = load_postponed_events()
|
||||||
if not events:
|
if not events:
|
||||||
return None
|
return None
|
||||||
@ -378,4 +376,5 @@ def process_postponed_logs():
|
|||||||
timestamp=event["timestamp"],
|
timestamp=event["timestamp"],
|
||||||
instant_sending=False,
|
instant_sending=False,
|
||||||
)
|
)
|
||||||
|
telemetry.send()
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user