log torrent data in debug only

This commit is contained in:
nikk gitanes
2024-05-27 13:25:36 +03:00
parent 0a777b6f84
commit efced45a39
2 changed files with 5 additions and 4 deletions

View File

@@ -97,10 +97,10 @@ func addTorrent(req torrReqJS, c *gin.Context) {
tor, err := torr.AddTorrent(torrSpec, req.Title, req.Poster, req.Data, req.Category)
if tor.Data != "" {
if tor.Data != "" && set.BTsets.EnableDebug {
log.TLogln("torrent data:", tor.Data)
}
if tor.Category != "" {
if tor.Category != "" && set.BTsets.EnableDebug {
log.TLogln("torrent category:", tor.Category)
}