log all unknown exceptions to wakatime.log file
This commit is contained in:
parent
fdc2981e74
commit
d389be2876
1 changed files with 52 additions and 49 deletions
|
@ -412,6 +412,7 @@ def execute(argv=None):
|
||||||
|
|
||||||
setup_logging(args, __version__)
|
setup_logging(args, __version__)
|
||||||
|
|
||||||
|
try:
|
||||||
exclude = should_exclude(args.entity, args.include, args.exclude)
|
exclude = should_exclude(args.entity, args.include, args.exclude)
|
||||||
if exclude is not False:
|
if exclude is not False:
|
||||||
log.debug(u('Skipping because matches exclude pattern: {pattern}').format(
|
log.debug(u('Skipping because matches exclude pattern: {pattern}').format(
|
||||||
|
@ -468,3 +469,5 @@ def execute(argv=None):
|
||||||
else:
|
else:
|
||||||
log.debug('File does not exist; ignoring this heartbeat.')
|
log.debug('File does not exist; ignoring this heartbeat.')
|
||||||
return 0
|
return 0
|
||||||
|
except:
|
||||||
|
log.traceback()
|
||||||
|
|
Loading…
Reference in a new issue