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

log level CLI is ignored #164615

Open
weinand opened this issue Oct 25, 2022 · 1 comment
Open

log level CLI is ignored #164615

weinand opened this issue Oct 25, 2022 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug log VS Code log issues
Milestone

Comments

@weinand
Copy link
Contributor

weinand commented Oct 25, 2022

Testing #164434

In my "hello world" extension my "hello" command looks like this:

	let disposable= vscode.commands.registerCommand('logext.helloWorld', () => {
		log.trace('AWs trace message');
		log.debug('AWs debug message');
		log.info('AWs info message');
		log.warn('AWs warning message');
		log.error('AWs error message');
	});

I'm launching the extension from the launch.json with "--log debug":

CleanShot 2022-10-25 at 18 19 21@2x

Running the "hello" command fills the channel with this:

CleanShot 2022-10-25 at 18 01 23@2x

The log entry for "debug" is missing.

But opening the "Set Log Level" quickpick on my channel correctly shows "debug" as the default level:

CleanShot 2022-10-25 at 18 20 49@2x

@paulacamargo25
Copy link
Contributor

I have the same error on MacOS.

@sandy081 sandy081 added bug Issue identified by VS Code Team member as probable bug log VS Code log issues labels Oct 26, 2022
@sandy081 sandy081 modified the milestones: October 2022, November 2022 Oct 26, 2022
@sandy081 sandy081 modified the milestones: November 2022, December 2022 Nov 28, 2022
@sandy081 sandy081 modified the milestones: January 2023, Backlog Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug log VS Code log issues
Projects
None yet
Development

No branches or pull requests

3 participants