Skip to content

Commit

Permalink
Changes output channels to be treated as logs
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Feb 6, 2025
1 parent 7228338 commit b67526a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/env/node/git/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2378,7 +2378,7 @@ export class Git {
private logCore(message: string, ex?: Error | undefined): void {
if (!Logger.enabled(ex != null ? 'error' : 'debug')) return;

this._gitOutput ??= window.createOutputChannel('GitLens (Git)');
this._gitOutput ??= window.createOutputChannel('GitLens (Git)', { log: true });
this._gitOutput.appendLine(`${Logger.timestamp} ${message}${ex != null ? ` ${GlyphChars.Dot} FAILED` : ''}`);
if (ex != null) {
this._gitOutput.appendLine(`\n${String(ex)}\n`);
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function activate(context: ExtensionContext): Promise<GitLensApi |
{
name: 'GitLens',
createChannel: function (name: string) {
const channel = new BufferedLogChannel(window.createOutputChannel(name), 500);
const channel = new BufferedLogChannel(window.createOutputChannel(name, { log: true }), 500);
context.subscriptions.push(channel);

if (logLevel === 'error' || logLevel === 'warn') {
Expand Down

0 comments on commit b67526a

Please sign in to comment.