# Pulire i log dei token di autenticazione utente?

**URL:** <https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397>\
**Category:** Bug\
**Created:** [13 Settembre 2024, 5:30pm 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:** 5

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [13 Settembre 2024, 7:07pm UTC](https://meta.discourse.org/t/clean-up-user-auth-token-logs/326397/5 "2024-09-13T19:07:10Z")

</div>

Grazie, non mi ero reso conto che ci fosse.

Quindi… il [cleanup viene eseguito solo](https://github.com/discourse/discourse/blob/main/app/models/user_auth_token.rb#L206-L212) quando `verbose_auth_token_logging` è `true` (il che non è il caso di questa istanza)

ma il logging non verbose avviene sempre, indipendentemente dall’impostazione 😱

> <https://github.com/discourse/discourse/blob/main/app/models/user_auth_token.rb#L29-L35>

per [8fb823c](https://github.com/discourse/discourse/commit/8fb823c30f7fd3086f4370c2dc6e4e3737ae6acf)

Sposto questo problema in #Contribute > Bug 🙂

---

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