Skip to content

Commit

Permalink
improve logging for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
domenzain committed Sep 12, 2018
1 parent 155e502 commit 62d3df1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ptpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def __new__(cls, device=None, extension=None, transport=None,
PTPy = ptpy_factory(transport)
else:
logger.debug('Imposing {} extension'.format(extension))
if extension is None:
logger.warning('Could not choose camera extension')
PTPy = ptpy_factory(
transport,
extension
Expand Down

0 comments on commit 62d3df1

Please sign in to comment.