Log the whole traceback, not just exception headline.
This commit is contained in:
parent
5fb31208c9
commit
e9e1f5930c
1 changed files with 5 additions and 2 deletions
|
@ -22,6 +22,7 @@ import bs4
|
|||
import requests
|
||||
import sys
|
||||
import tenacity
|
||||
import traceback
|
||||
|
||||
from voussoirkit import betterhelp
|
||||
from voussoirkit import downloady
|
||||
|
@ -102,7 +103,8 @@ def fpk_argparse(args):
|
|||
try:
|
||||
apk_url = get_apk_url(package)
|
||||
except Exception as exc:
|
||||
log.error('%s was unable to get apk url (%s).', package, exc)
|
||||
exc = traceback.format_exc()
|
||||
log.error('%s was unable to get apk url:\n%s', package, exc)
|
||||
return_status = 1
|
||||
continue
|
||||
|
||||
|
@ -124,7 +126,8 @@ def fpk_argparse(args):
|
|||
download_file(apk_url, this_dest)
|
||||
download_count += 1
|
||||
except Exception as exc:
|
||||
log.error('%s was unable to download apk (%s).', package, exc)
|
||||
exc = traceback.format_exc()
|
||||
log.error('%s was unable to download apk:\n%s', package, exc)
|
||||
return_status = 1
|
||||
continue
|
||||
|
||||
|
|
Loading…
Reference in a new issue