logfile
This commit is contained in:
@@ -26,7 +26,11 @@ def get_logging_config():
|
||||
'enable_console_logging': config.enable_console_logging,
|
||||
'enable_console_progress': config.enable_console_progress,
|
||||
'enable_fail2ban_logging': config.enable_fail2ban_logging,
|
||||
'log_files': log_config.get_log_files() if hasattr(log_config, 'get_log_files') else []
|
||||
'log_files': [
|
||||
'./logs/aniworld.log',
|
||||
'./logs/auth_failures.log',
|
||||
'./logs/downloads.log'
|
||||
]
|
||||
}
|
||||
|
||||
return jsonify({
|
||||
@@ -102,10 +106,12 @@ def list_log_files():
|
||||
"""Get list of available log files."""
|
||||
try:
|
||||
from src.infrastructure.logging.GlobalLogger import error_logger
|
||||
|
||||
# Since we don't have log_config.get_log_files(), return basic log files
|
||||
log_files = ["aniworld.log", "auth_failures.log", "downloads.log"]
|
||||
|
||||
# Return basic log files
|
||||
log_files = [
|
||||
'./logs/aniworld.log',
|
||||
'./logs/auth_failures.log',
|
||||
'./logs/downloads.log'
|
||||
]
|
||||
return jsonify({
|
||||
'success': True,
|
||||
'files': log_files
|
||||
|
||||
Reference in New Issue
Block a user