mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
feat(dashboard): keep chat for 30 days by default
log_chat_days defaults to 30 (was 90). Pruning stays on the Log pruning task's own database connection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -211,7 +211,7 @@ namespace {
|
||||
std::vector<std::tuple<std::optional<eLog>, std::string, int64_t>> logs;
|
||||
for (const auto& [log, key, fallback] : { std::tuple{ std::optional(eLog::ACTIVITY), "log_activity_days", 365 },
|
||||
std::tuple{ std::optional(eLog::COMMAND), "log_command_days", 365 }, std::tuple{ std::optional(eLog::AUDIT), "log_audit_days", 730 },
|
||||
std::tuple{ std::optional(eLog::CHEAT_DETECTION), "log_cheat_detection_days", 365 }, std::tuple{ std::optional(eLog::CHAT), "log_chat_days", 90 },
|
||||
std::tuple{ std::optional(eLog::CHEAT_DETECTION), "log_cheat_detection_days", 365 }, std::tuple{ std::optional(eLog::CHAT), "log_chat_days", 30 },
|
||||
std::tuple{ std::optional(eLog::LOGIN_ADDRESS), "log_login_address_days", 90 },
|
||||
std::tuple{ std::optional<eLog>(), "log_task_days", 90 },
|
||||
std::tuple{ std::optional<eLog>(), "health_days", 30 },
|
||||
|
||||
@@ -407,7 +407,7 @@ namespace {
|
||||
c.Add(Days("log_audit_days", "Audit log", "", "730"));
|
||||
c.Add(Days("log_cheat_detection_days", "Cheat detections", "", "365"));
|
||||
c.Add(Days("log_task_days", "Scheduled task runs", "", "90"));
|
||||
c.Add(Days("log_chat_days", "Chat log", "", "90"));
|
||||
c.Add(Days("log_chat_days", "Chat log", "Every message players sent (zone, whispers, team and guild chat). Chat flags keep a copy of what they flagged.", "30"));
|
||||
c.Add(Days("log_login_address_days", "Login addresses", "Addresses an account hasn't logged in from for this long are forgotten.", "90"));
|
||||
c.Add(Days("health_days", "Server health history", "Minute-by-minute player counts and uptime.", "30"));
|
||||
c.Add(Days("traffic_days", "Server traffic history", "Minute-by-minute packets, bytes and HTTP requests of every server (Diagnostics). The last hour at one second is only kept in memory.", "30"));
|
||||
|
||||
@@ -253,7 +253,7 @@ backup_mysqldump=mysqldump
|
||||
|
||||
# ---- Logs ----
|
||||
# Chat log (days)
|
||||
log_chat_days=90
|
||||
log_chat_days=30
|
||||
# Login addresses: Addresses an account hasn't logged in from for this long are forgotten. (days)
|
||||
log_login_address_days=90
|
||||
# Server health history: Minute-by-minute player counts and uptime. (days)
|
||||
|
||||
Reference in New Issue
Block a user