TrinityCore / TrinityCore/TrinityCoreCustomChanges

3.3.5-passive_anticheat log suggestion

未关闭
#137 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
C++
星标
83
派生
58
PR 合并指标
30 天内没有已合并 PR

描述

Description:

Woud be great when Anticheat.WriteLog = 0 it will not create the empty document log at all.
This is somehow annoying while testing because it does fill logs folder on every server start-up.

Current behaviour:

Atm when Anticheat.WriteLog = 0 / is disabled in config it will still create the empty document with anticheat_y-m-d-h-m-s.txt

Expected behaviour:

Maybe when Anticheat.WriteLog = 0, the log file not be created at all or at least overwrited at next start-up

Steps to reproduce the problem:

  1. Set Anticheat.WriteLog = 0 in worldserver config then start the server
  2. notice the empty log is still created

Branch(es):

3.3.5

TC rev. hash/commit:

d434182e30dd

TDB version: TDB335.2404

Operating system: Windows 11 x64

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 3.3.5 分支上使用 Anticheat.WriteLog = 0 的 worldserver 配置复现该问题,然后跟踪在 logs 文件夹中创建文件的启动路径。比较启用和禁用日志记录时的启动行为,并确认禁用该设置后不再创建空的 anticheat_y-m-d-h-m-s.txt 文件。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
backend, security
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。