Skip to content

Add logging throughout the extension #1131

Closed

Description

And VS Code should have something for this in their March release.

  • Ensure errors logged in extension are not (via some config or ability to mock) logged during unit tests
    (else this pollutes the test output and could be confusing).
    Note: Errors are forcibly raised in unit tests.

Activity

  1. changed the title [-]Add logging through the extension[/-] [+]Add logging throughout the extension[/+] on Apr 16, 2018
  2. brettcannon commented on Apr 16, 2018

    @brettcannon
    MemberAuthor

    Any place we execute something behind the scenes through a system call we should document, e.g. the command we use to discover tests, to run them, etc.

  3. brettcannon commented on Sep 19, 2018

    @brettcannon
    MemberAuthor

    Duplicate of #2156

  4. locked as resolved and limited conversation to collaborators on Oct 17, 2018
  5. kimadeline commented on Jun 19, 2019

    @kimadeline

    Todo

    • log all extension commands being run behind the scenes in the Python output panel, except for testing (stays in its own testing window)
    • for every command being run, display
    > path/to/command -args -args2
    cwd: current/working/directory // optional line if there is no directory parameter passed to the logging function
    
    • make sure that the commands and their output are being logged in VSCode's devtools
    • Ensure errors logged in extension are not (via some config or ability to mock) logged during unit tests
    • check that it works for:
      • vcode single workspaces
      • vscode multi-folder workspaces
      • folders
      • single files

    Later/separate PR:

  6. ericsnowcurrently commented on Jul 8, 2019

    @ericsnowcurrently

    I've verified that, using master, I now see commands logged in the "Python" output panel.

  7. ghost removed on Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debtCode quality issues

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions