Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print diagnostic messages when debugging mode is enabled #1133

Conversation

henrymercer
Copy link
Contributor

This PR prints diagnostic messages to the Actions log when debug logging is enabled by passing debug: true to codeql-action/init or enabling Actions step debug logging.

Example: The following custom query:

ql
/**
 * @kind diagnostic
 * @id test
 */

select "Test diagnostic message", 2

produces:

image

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

This commit prints diagnostic messages to the Actions log when debug
logging is enabled by passing `debug: true` to `codeql-action/init` or
enabling Actions step debug logging.
@henrymercer henrymercer requested a review from a team as a code owner July 1, 2022 18:16
@henrymercer henrymercer requested a review from aeisenberg July 12, 2022 14:17
@henrymercer henrymercer merged commit b380175 into henrymercer/one-click-debug Jul 12, 2022
@henrymercer henrymercer deleted the henrymercer/log-diagnostics-when-debug-enabled branch July 12, 2022 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants