• [^] # Re: Tu m'excuseras de rire...

    Posté par . En réponse à la dépêche Shinken version 2.0. Évalué à 2. Dernière modification le 17 avril 2014 à 16:38.

    Un warning ? pourquoi pas critical ?

    import threading
    import time
    from my_modules imports globally_stopped()
    most_important_logger = logging.getLogger('root')
    # [...] quelque part après avoir lu la conf :
    class ComplainThread(object):
     def run():
     while not globally_stopped():
     most_important_logger.critical(
     "Someone is (probably) hijacking your SSL sessions!"
     " read documentation at https://..."
     )
     if config["Yes I know what I'm doing"]:
     return
     time.sleep(10)
    complaint = ComplainThread()
    complaint.start()

    :-)