mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
Merge pull request #22 from tsynik/debug
add debug switch and mute excessive logging
This commit is contained in:
@@ -514,8 +514,9 @@ func torrentPlay(c echo.Context) error {
|
||||
if link == "" {
|
||||
return echo.NewHTTPError(http.StatusBadRequest, "link should not be empty")
|
||||
}
|
||||
fmt.Println("Play:", c.QueryParams())
|
||||
|
||||
if (settings.Get().EnableDebug) {
|
||||
fmt.Println("Play:", c.QueryParams()) // mute log flood on play
|
||||
}
|
||||
qsave := c.QueryParam("save")
|
||||
qpreload := c.QueryParam("preload")
|
||||
qfile := c.QueryParam("file")
|
||||
|
||||
@@ -85,6 +85,10 @@ var settingsPage = `
|
||||
<div class="form-check">
|
||||
<input id="DisableUpload" class="form-check-input" type="checkbox" autocomplete="off">
|
||||
<label for="DisableUpload">Отключить Отдачу</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input id="EnableDebug" class="form-check-input" type="checkbox" autocomplete="off">
|
||||
<label for="EnableDebug">Режим отладки (только для разработчиков)</label>
|
||||
</div>
|
||||
<br>
|
||||
<div class="input-group">
|
||||
@@ -171,6 +175,7 @@ var settingsPage = `
|
||||
data.DisableUPNP = $('#DisableUPNP').prop('checked');
|
||||
data.DisableDHT = $('#DisableDHT').prop('checked');
|
||||
data.DisableUpload = $('#DisableUpload').prop('checked');
|
||||
data.EnableDebug = $('#EnableDebug').prop('checked');
|
||||
data.Encryption = Number($('#Encryption').val());
|
||||
|
||||
data.ConnectionsLimit = Number($('#ConnectionsLimit').val());
|
||||
|
||||
Reference in New Issue
Block a user