opsdroid / opsdroid

🤖 An open source chat-ops bot framework
https://opsdroid.dev
Apache License 2.0
832 stars 408 forks source link

Debug logging doesn’t show message contents only headers. #308

Open sgreszcz opened 7 years ago

sgreszcz commented 7 years ago

Description

Debug logging - doesn’t show message being sent/received to/from the bot, only headers. In my debug trace it does seem to extract the text to parse, but not the response from the skill returned to the bot

Steps to Reproduce

Please also include relevant information and steps to reproduce the bug/issue.

Trigger a skill that responds with anything (for example text)

Expected Functionality

Explain what should happen.

I'm assuming we should be able to see the response data being sent back to the bot in the debug logs.

Experienced Functionality

Explain what happened instead(Please include the debug log).

DEBUG opsdroid.core: Parsing input: vcc load info DEBUG opsdroid.core: Processing parsers DEBUG opsdroid.core: Checking apiai

Versions

Configuration File

Please include your version of the configuration file bellow.

N/A

Additional Details

Any other details you wish to include such as screenshots, console messages, etc.

jacobtomlinson commented 7 years ago

This is a very valid point. The intention is that if you set the debug level to INFO or above you shouldn't see messages in the log. This is for security reasons as someone who has access to the logs may not have permission to see everyone's conversations.

However these should be shown in the debug log, and possibly there should be a separate log output to store a chat history.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.