Allow to configure SRT logging

This commit is contained in:
Ingo Oppermann
2022-07-01 18:39:39 +02:00
parent e5b61a2f46
commit 2058554524
6 changed files with 141 additions and 13 deletions

View File

@@ -2675,6 +2675,20 @@ const docTemplate = `{
"enable": {
"type": "boolean"
},
"log": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"passphrase": {
"type": "string"
},
@@ -3504,7 +3518,7 @@ const docTemplate = `{
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/definitions/api.SRTLog"
}
}
},
@@ -3533,7 +3547,7 @@ const docTemplate = `{
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/definitions/api.SRTLog"
}
}
},
@@ -3542,6 +3556,20 @@ const docTemplate = `{
}
}
},
"api.SRTLog": {
"type": "object",
"properties": {
"msg": {
"type": "array",
"items": {
"type": "string"
}
},
"ts": {
"type": "integer"
}
}
},
"api.SRTStatistics": {
"type": "object",
"properties": {
@@ -4241,6 +4269,20 @@ const docTemplate = `{
"enable": {
"type": "boolean"
},
"log": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"passphrase": {
"type": "string"
},