log all unknown exceptions to wakatime.log file

This commit is contained in:
Alan Hamlett 2015-10-23 00:14:41 -07:00
parent fdc2981e74
commit d389be2876

View file

@ -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()