# 清理 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:** 3

<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日 18:22 UTC](https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397/3 "2024-09-13T18:22:19Z")

</div>

是的，`user_auth_token_logs` 仅用于调试目的。所有行都可以清空，唯一的后果是您将没有任何日志可供调试。

> [@RGJ](#):
>
> 是否可以有一个作业自动清理此内容？

这应该由以下内容覆盖：

[https://github.com/discourse/discourse/blob/main/app/jobs/scheduled/weekly.rb#L13](https://github.com/discourse/discourse/blob/main/app/jobs/scheduled/weekly.rb#L13)

---

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