Skip to content

Commit

Permalink
use debugLog from tapo object
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorsemeano committed Mar 8, 2024
1 parent bbf1c18 commit abbb5d9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pytapo/media_stream/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
import json
import os
import hashlib
import logging

logger = logging.getLogger(__name__)

class Downloader:
FRESH_RECORDING_TIME_SECONDS = 60
Expand Down Expand Up @@ -199,7 +196,7 @@ async def download(self, retry=False):
downloading = False
break
except JSONDecodeError:
logger.warning("Unable to parse JSON sent from device")
self.tapo.debugLog("Unable to parse JSON sent from device")
if downloading:
# Handle case where camera randomly stopped respoding
if not downloadedFull and not retry:
Expand Down

0 comments on commit abbb5d9

Please sign in to comment.