# Log more admin actions

**URL:** https://meta.discourse.org/t/log-more-admin-actions/55390
**Category:** Feature
**Created:** [January 9, 2017, 9:15am UTC](https://meta.discourse.org/t/log-more-admin-actions/55390 "2017-01-09T09:15:32Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![vchuravy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vchuravy/32/120525_2.png) [@vchuravy](https://meta.discourse.org/u/vchuravy)
#### Post date: [January 9, 2017, 9:15am UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/1 "2017-01-09T09:15:32Z")

</div>

I just noted that a few admin/moderator actions are not audited.  
As an example Lock/Unlock user to Trust Level isn’t, but probably should be.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 9, 2017, 1:44pm UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/2 "2017-01-09T13:44:58Z")

</div>

While we’re on the subject…

Blocks by the system user don’t have any context:

 ![](https://global.discourse-cdn.com/meta/original/3X/f/5/f53870a0120da6355b0115bfbd928a3228d62274.png)

Delete post has no context (self-deleted in these cases):

 ![](https://global.discourse-cdn.com/meta/original/3X/a/a/aaab67d5fa19a2e150e09e9f415eb117a774f592.png)

Delete user reveals email address:  
[https://meta.discourse.org/t/privacy-email-of-deleted-users-displayed-in-staff-logs/39324](https://meta.discourse.org/t/privacy-email-of-deleted-users-displayed-in-staff-logs/39324)  
Also occurs with `revoke email`.

3 separate logs for same event (spam topic/user):

 ![](https://global.discourse-cdn.com/meta/original/3X/8/a/8a55be437329409bd6c4aad51c7780e2e4e7c2ec.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 9, 2017, 9:49pm UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/3 "2017-01-09T21:49:36Z")

</div>

Adding context should be a priority, @neil can you add to your list.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [January 9, 2017, 9:53pm UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/4 "2017-01-09T21:53:10Z")

</div>

Yeah we should definitely try to include context whenever we add something in those logs. Added to my list.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [January 10, 2017, 10:51pm UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/5 "2017-01-10T22:51:57Z")

</div>

I handled all the things mentioned in this topic.

- log lock/unlock trust level
- log activate/deactivate user
- context added for deleted post because author deleted
- stop displaying email addresses of deleted users. The screened emails list will show the emails of spammers/bad people.
- stop displaying email address for revoked email (can be found on user record as usual)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [January 10, 2017, 11:12pm UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/6 "2017-01-10T23:12:09Z")

</div>

> [@jomaxro](#):
>
> Blocks by the system user don’t have any context:

Were you able to handle this too?

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [January 12, 2017, 3:20pm UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/7 "2017-01-12T15:20:12Z")

</div>

Yes the context will include something like “blocked by staff” and “too many flags”, from the reason for the block.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [January 13, 2017, 9:36am UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/8 "2017-01-13T09:36:50Z")

</div>

While we’re at it, I’ll take the liberty of bumping this:

> [@System admin actions should include reason](https://meta.discourse.org/t/system-admin-actions-should-include-reason/46389):
>
> I’ve heard from multiple customers who were [puzzled by how the system user was quietly taking action](https://meta.discourse.org/t/why-my-discourses-syster-always-block-users-itself/46122) on certain posts and users. What’s usually happening here is that our friendly anti-spam measures are simply taking out the garbage But to anyone unbeknownst to this, automated deletions look scary because there’s really nothing to indicate that this is intended behaviour. We can do a better job of clueing the user in to what’s happening by briefly explaining why @system took action by putting…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 21, 2017, 9:12pm UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/10 "2017-11-21T21:12:04Z")

</div>

Can you confirm we are good here @neil and @erlend_sh?

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [November 22, 2017, 10:43am UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/11 "2017-11-22T10:43:20Z")

</div>

I’m still seeing some system deletions with empty descriptions, which is quite confusing:

 ![70008DFC-10FC-4C89-87CA-70EB15A6C722](https://global.discourse-cdn.com/meta/original/3X/8/3/83e0a732b29558d2417676b3945118b54a58c2f6.jpeg)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 22, 2017, 10:57am UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/12 "2017-11-22T10:57:06Z")

</div>

Those look like email staged users to me, so system is perhaps cleaning up old staged users, can you confirm @zogstrip?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [November 22, 2017, 2:44pm UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/13 "2017-11-22T14:44:28Z")

</div>

> [@codinghorror](#):
>
> can you confirm @zogstrip?

Confirmed ✔ and fixed 😉

[https://github.com/discourse/discourse/commit/4addc5e3297061d9a0e37b41c98024f50a31b50d](https://github.com/discourse/discourse/commit/4addc5e3297061d9a0e37b41c98024f50a31b50d)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [November 22, 2017, 8:49pm UTC](https://meta.discourse.org/t/log-more-admin-actions/55390/14 "2017-11-22T20:49:05Z")

</div>


