commit
8df083df39
@ -604,6 +604,17 @@ class IOSDevice(object):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def logs(cls):
|
def logs(cls):
|
||||||
|
try:
|
||||||
|
cmd = [
|
||||||
|
'which',
|
||||||
|
'idevicesyslog'
|
||||||
|
]
|
||||||
|
logging.info(' '.join(cmd))
|
||||||
|
subprocess.check_call(cmd)
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
logging.error('"log" command only works with iOS devices if you have installed idevicesyslog. Run "brew install libimobiledevice" to install it with homebrew.')
|
||||||
|
return None
|
||||||
|
|
||||||
def do_logs():
|
def do_logs():
|
||||||
cmd = [
|
cmd = [
|
||||||
'idevicesyslog',
|
'idevicesyslog',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user