feat: reduce python log level

This commit is contained in:
Zamitto 2025-01-05 15:07:52 -03:00
parent f682c56fd0
commit fb665570ff
2 changed files with 8 additions and 2 deletions

View File

@ -4,6 +4,11 @@ from torrent_downloader import TorrentDownloader
from http_downloader import HttpDownloader
from profile_image_processor import ProfileImageProcessor
import libtorrent as lt
import logging
log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)
app = Flask(__name__)
@ -94,7 +99,7 @@ def seed_status():
@app.route("/healthcheck", methods=["GET"])
def healthcheck():
return "", 200
return "ok", 200
@app.route("/process-list", methods=["GET"])
def process_list():

View File

@ -32,7 +32,8 @@ export class HydraApi {
private static readonly EXPIRATION_OFFSET_IN_MS = 1000 * 60 * 5; // 5 minutes
private static readonly ADD_LOG_INTERCEPTOR = true;
private static secondsToMilliseconds = (seconds: number) => seconds * 1000;
private static readonly secondsToMilliseconds = (seconds: number) =>
seconds * 1000;
private static userAuth: HydraApiUserAuth = {
authToken: "",