Skip to content

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.

3 participants