# 清理 user\_auth\_token\_logs？

**URL:** https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397
**Category:** Bug
**Created:** [2024年九月13日 17:30 UTC](https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397 "2024-09-13T17:30:22Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2024年九月13日 19:45 UTC](https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397/6 "2024-09-13T19:45:14Z")

</div>

你说得对，抓得好。看起来[第 214 至 217 行](https://github.com/discourse/discourse/blob/main/app/models/user_auth_token.rb#L214-L217)也需要修复。

我乐于在特定时间后进行全局清理。@osama（因为你是上面链接的提交的作者），你认为我们可以在一段时间后清理所有这些日志吗（如果可以，多久之后）？听起来我们需要保留其中一些日志来检测可疑登录。

---

_[View the full topic](https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397)._
