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"
},

View File

@@ -2667,6 +2667,20 @@
"enable": {
"type": "boolean"
},
"log": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"passphrase": {
"type": "string"
},
@@ -3496,7 +3510,7 @@
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/definitions/api.SRTLog"
}
}
},
@@ -3525,7 +3539,7 @@
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
"$ref": "#/definitions/api.SRTLog"
}
}
},
@@ -3534,6 +3548,20 @@
}
}
},
"api.SRTLog": {
"type": "object",
"properties": {
"msg": {
"type": "array",
"items": {
"type": "string"
}
},
"ts": {
"type": "integer"
}
}
},
"api.SRTStatistics": {
"type": "object",
"properties": {
@@ -4233,6 +4261,20 @@
"enable": {
"type": "boolean"
},
"log": {
"type": "object",
"properties": {
"enable": {
"type": "boolean"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"passphrase": {
"type": "string"
},

View File

@@ -307,6 +307,15 @@ definitions:
type: string
enable:
type: boolean
log:
properties:
enable:
type: boolean
topics:
items:
type: string
type: array
type: object
passphrase:
type: string
token:
@@ -854,7 +863,7 @@ definitions:
log:
additionalProperties:
items:
type: string
$ref: '#/definitions/api.SRTLog'
type: array
type: object
publisher:
@@ -873,12 +882,21 @@ definitions:
log:
additionalProperties:
items:
type: string
$ref: '#/definitions/api.SRTLog'
type: array
type: object
stats:
$ref: '#/definitions/api.SRTStatistics'
type: object
api.SRTLog:
properties:
msg:
items:
type: string
type: array
ts:
type: integer
type: object
api.SRTStatistics:
properties:
avail_recv_buf_bytes:
@@ -1392,6 +1410,15 @@ definitions:
type: string
enable:
type: boolean
log:
properties:
enable:
type: boolean
topics:
items:
type: string
type: array
type: object
passphrase:
type: string
token: