Skip to content

Commit

Permalink
feat: reduce python log level
Browse files Browse the repository at this point in the history
  • Loading branch information
zamitto committed Jan 5, 2025
1 parent f682c56 commit fb66557
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion python_rpc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
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__)

Expand Down Expand Up @@ -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():
Expand Down
3 changes: 2 additions & 1 deletion src/main/services/hydra-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: "",
Expand Down

0 comments on commit fb66557

Please sign in to comment.