mirror of
https://github.com/marcogll/vanessa_bot_vanity.git
synced 2026-01-13 13:25:16 +00:00
13 lines
433 B
Python
13 lines
433 B
Python
import logging
|
|
from modules.database import SessionUsersAlma
|
|
|
|
def log_request(telegram_id, username, command, message):
|
|
if not SessionUsersAlma:
|
|
# DB not configured, just log to console/file
|
|
logging.info(f"REQ: {command} from {username} ({telegram_id}): {message}")
|
|
return
|
|
|
|
# DB logic removed as models are not available
|
|
logging.info(f"REQ: {command} from {username} ({telegram_id}): {message}")
|
|
|