loggign mode
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s

This commit is contained in:
2026-01-10 18:56:44 +01:00
parent b98a7898b8
commit 8fdf23f3b5
4 changed files with 3 additions and 3 deletions

View File

@@ -16,6 +16,9 @@ import src.api.nftables_api as nftables_api
# ---- Config ----------------------------------------------------------- # ---- Config -----------------------------------------------------------
DB_DSN = "postgresql://mitm_user:mitm_password@localhost:5432/mitm_db" DB_DSN = "postgresql://mitm_user:mitm_password@localhost:5432/mitm_db"
logging.basicConfig(level=logging.DEBUG)
# ---- Globals ----------------------------------------------- # ---- Globals -----------------------------------------------
# Create DatabasePool instance (pool created on startup) # Create DatabasePool instance (pool created on startup)
shared_objects.db = DatabasePool(DB_DSN) shared_objects.db = DatabasePool(DB_DSN)

View File

@@ -34,7 +34,6 @@ from src.Models.etherType import EtherTypeEnum, ethertype_from_int
from src.Models.ip_protocol import IPProtocolEnum, protocol_from_number from src.Models.ip_protocol import IPProtocolEnum, protocol_from_number
# ---- Logging ---------------------------------------------------------- # ---- Logging ----------------------------------------------------------
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("af_packet_sniffer") logger = logging.getLogger("af_packet_sniffer")
# ---- Globals (kept minimal) ------------------------------------------- # ---- Globals (kept minimal) -------------------------------------------

View File

@@ -8,7 +8,6 @@ import asyncpg
from asyncpg.pool import Pool from asyncpg.pool import Pool
# ---- Logging ---------------------------------------------------------- # ---- Logging ----------------------------------------------------------
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("af_packet_sniffer") logger = logging.getLogger("af_packet_sniffer")

View File

@@ -3,7 +3,6 @@ import logging
import os import os
# ---- Logging ---------------------------------------------------------- # ---- Logging ----------------------------------------------------------
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("af_packet_sniffer") logger = logging.getLogger("af_packet_sniffer")
# ------------------------- # -------------------------