Strip out control codes from the logged messages (#10081)

* Strip out control codes from the logged messages

* Also strip away C1 control codes

* Add extra comments

* Clear the buffer after flushing; rename `write` to `flush`

* Move control code stripping into its own function

* Also strip out control codes from panic messages

* Also strip out Unicode left-to-right/right-to-left control codes
This commit is contained in:
Koute
2021-11-01 17:46:32 +09:00
committed by GitHub
parent 21c8d18c23
commit 8c2ea19085
5 changed files with 142 additions and 20 deletions
+2
View File
@@ -9462,6 +9462,8 @@ name = "sp-panic-handler"
version = "3.0.0"
dependencies = [
"backtrace",
"lazy_static",
"regex",
]
[[package]]