# Suspensions and Blocks do not give enough details in logs

**URL:** <https://meta.discourse.org/t/suspensions-and-blocks-do-not-give-enough-details-in-logs/39554>\
**Category:** Bug\
**Created:** [2016年二月14日 05:39 UTC](https://meta.discourse.org/t/suspensions-and-blocks-do-not-give-enough-details-in-logs/39554 "2016-02-14T05:39:33Z")\
**Posts on this page:** 5\
**Page:** 1

<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:** [2016年二月14日 05:39 UTC](https://meta.discourse.org/t/suspensions-and-blocks-do-not-give-enough-details-in-logs/39554/1 "2016-02-14T05:39:33Z")

</div>

**Summary:**

Exporting the staff logs and looking at suspensions and blocks does not show who the suspension/block was applied to. Automatic unsuspensions are not logged.

**Steps to reproduce:**

1. Suspend, block, un-suspend, or un-block at least one user.
2. Visit `/admin/logs/staff_action_logs`
3. Click Export

**Expected Results:**

Logs will show who each action was applied to.

**Actual Results:**

No user is given for each log entry. Automatic un-suspensions (due to a date being entered when suspended) are not listed.

**Notes:**

Might be a regression, as @codinghorror made it seem possible back in February:

> [@Suspension history](https://meta.discourse.org/t/suspension-history/25342/2):
>
> Should be available in admin, logs, staff actions if you filter by that action type. Or export the full logs. But yes eventually clicking suspension count on a user’s profile page should do something like that filter…

**Attachments:**

Logs:

 ![](https://global.discourse-cdn.com/meta/original/3X/9/7/97b615e41a423b67b62ec41f3fb5e45feba464a3.png)

**Version:**

Discourse 1.5.0.beta10 ([discourse.stonehearth.net](http://discourse.stonehearth.net/))

**System Information:**

Windows 10 Pro, Chrome Stable 48

---

<div class="post-metadata">

**Author:** ![shakti](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@shakti](https://meta.discourse.org/u/shakti)\
**Post date:** [2016年四月19日 12:39 UTC](https://meta.discourse.org/t/suspensions-and-blocks-do-not-give-enough-details-in-logs/39554/2 "2016-04-19T12:39:32Z")

</div>

I have created PR for this issue.  
[https://github.com/discourse/discourse/pull/4186](https://github.com/discourse/discourse/pull/4186)

---

<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:** [2016年四月19日 16:39 UTC](https://meta.discourse.org/t/suspensions-and-blocks-do-not-give-enough-details-in-logs/39554/3 "2016-04-19T16:39:08Z")

</div>

Sure I am open to improving this @techapj can you review?

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2016年四月21日 03:41 UTC](https://meta.discourse.org/t/suspensions-and-blocks-do-not-give-enough-details-in-logs/39554/4 "2016-04-21T03:41:53Z")

</div>

Looks good to me! Thanks @shakti 👍

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2016年四月21日 03:42 UTC](https://meta.discourse.org/t/suspensions-and-blocks-do-not-give-enough-details-in-logs/39554/5 "2016-04-21T03:42:00Z")

</div>


