leinardi / mypy-pycharm

A plugin providing both real-time and on-demand scanning of Python files with Mypy from within PyCharm/IDEA.
Apache License 2.0
188 stars 30 forks source link

Enable debug logging when running via Gradle #80

Closed intgr closed 2 years ago

intgr commented 2 years ago

Contributor checklist


Description

Type of Changes

Type
✳️ Other
leinardi commented 2 years ago

Hi @intgr, could you telling me more about this PR? I tried the branch but I can't find where the logs are shown...

intgr commented 2 years ago

You can find it with "Show Log in [x]" in the Help menu. ([x] differs depending on OS)

image

leinardi commented 2 years ago

Mmm, I still don't get it: what is this line doing exactly?

systemProperties.put("idea.log.debug.categories", "#com.leinardi.pycharm.mypy")

I'm pretty sure the logs were showing in that file even without this change...

intgr commented 2 years ago

By default, only messages with level INFO or higher appear in logs. DEBUG messages were hidden.

This makes DEBUG messages from mypy plugin classes show up in logs.