import logging
logging.basicConfig() logging.getLogger('apscheduler').setLevel(logging.DEBUG)
def my_listener(event): if event.exception: print('The job crashed :(') else: print('The job worked :)')
scheduler.add_listener(my_listener, EVENT_JOB_EXECUTED | EVENT_JOB_ERROR)