config: Add encryption debug category.
This commit is contained in:
parent
70d577b89e
commit
76e0aba3aa
1 changed files with 5 additions and 8 deletions
|
@ -42,13 +42,6 @@ class ServerBufferType(Enum):
|
||||||
INDEPENDENT = 2
|
INDEPENDENT = 2
|
||||||
|
|
||||||
|
|
||||||
@unique
|
|
||||||
class DebugType(Enum):
|
|
||||||
MESSAGING = 0
|
|
||||||
NETWORK = 1
|
|
||||||
TIMING = 2
|
|
||||||
|
|
||||||
|
|
||||||
class Option(
|
class Option(
|
||||||
namedtuple(
|
namedtuple(
|
||||||
"Option",
|
"Option",
|
||||||
|
@ -109,6 +102,8 @@ def change_log_level(category, level):
|
||||||
nio.events.logger.level = level
|
nio.events.logger.level = level
|
||||||
elif category == "responses":
|
elif category == "responses":
|
||||||
nio.responses.logger.level = level
|
nio.responses.logger.level = level
|
||||||
|
elif category == "encryption":
|
||||||
|
nio.encryption.logger.level = level
|
||||||
|
|
||||||
|
|
||||||
@utf8_decode
|
@utf8_decode
|
||||||
|
@ -175,6 +170,8 @@ def logbook_category(value):
|
||||||
return "events"
|
return "events"
|
||||||
if value == 4:
|
if value == 4:
|
||||||
return "responses"
|
return "responses"
|
||||||
|
if value == 5:
|
||||||
|
return "encryption"
|
||||||
|
|
||||||
return "all"
|
return "all"
|
||||||
|
|
||||||
|
@ -369,7 +366,7 @@ class MatrixConfig(WeechatConfig):
|
||||||
Option(
|
Option(
|
||||||
"debug_category",
|
"debug_category",
|
||||||
"integer",
|
"integer",
|
||||||
"all|http|client|events|responses",
|
"all|http|client|events|responses|encryption",
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
"all",
|
"all",
|
||||||
|
|
Loading…
Add table
Reference in a new issue