letsencrypt.reporter
¶
Collects and displays information to the user.
-
class
letsencrypt.reporter.
Reporter
[source]¶ Bases:
object
Collects and displays information to the user.
Variables: messages (Queue.PriorityQueue) – Messages to be displayed to the user. -
HIGH_PRIORITY
= 0¶ High priority constant. See
add_message
.
-
MEDIUM_PRIORITY
= 1¶ Medium priority constant. See
add_message
.
-
LOW_PRIORITY
= 2¶ Low priority constant. See
add_message
.
-
_msg_type
¶ alias of
ReporterMsg
-
add_message
(msg, priority, on_crash=True)[source]¶ Adds msg to the list of messages to be printed.
Parameters: - msg (str) – Message to be displayed to the user.
- priority (int) – One of
HIGH_PRIORITY
,MEDIUM_PRIORITY
, orLOW_PRIORITY
. - on_crash (bool) – Whether or not the message should be printed if the program exits abnormally.
-