# To display the logs other than secret codes in a task

**URL:** <https://forum.ansible.com/t/to-display-the-logs-other-than-secret-codes-in-a-task/35512>\
**Category:** Ansible Project\
**Created:** [July 16, 2021, 8:04am UTC](https://forum.ansible.com/t/to-display-the-logs-other-than-secret-codes-in-a-task/35512 "2021-07-16T08:04:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aneesh](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@Aneesh](https://forum.ansible.com/u/Aneesh)\
**Post date:** [July 16, 2021, 8:04am UTC](https://forum.ansible.com/t/to-display-the-logs-other-than-secret-codes-in-a-task/35512/1 "2021-07-16T08:04:42Z")

</div>

Hi

I am using vault for database passwords and used for the execution of database tasks, With no\_log, the messages are getting censored. But if in case of any error from MySQL /database also not visible because of this . Is there any way i can print the output without displaying the passwords .

Thanks  
Aneesh

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [July 16, 2021, 8:14am UTC](https://forum.ansible.com/t/to-display-the-logs-other-than-secret-codes-in-a-task/35512/2 "2021-07-16T08:14:34Z")

</div>

I don't think so.  
If you really must, then I guess a workaround is to create a temporary  
set of credentials, remove no\_log, debug the SQL query issue, and then  
once it's fixed, revoke the temporary credentials and use the original  
ones.
