Skip to content

Commit b67526a

Browse files
committed
Changes output channels to be treated as logs
1 parent 7228338 commit b67526a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/env/node/git/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ export class Git {
23782378
private logCore(message: string, ex?: Error | undefined): void {
23792379
if (!Logger.enabled(ex != null ? 'error' : 'debug')) return;
23802380

2381-
this._gitOutput ??= window.createOutputChannel('GitLens (Git)');
2381+
this._gitOutput ??= window.createOutputChannel('GitLens (Git)', { log: true });
23822382
this._gitOutput.appendLine(`${Logger.timestamp} ${message}${ex != null ? ` ${GlyphChars.Dot} FAILED` : ''}`);
23832383
if (ex != null) {
23842384
this._gitOutput.appendLine(`\n${String(ex)}\n`);

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function activate(context: ExtensionContext): Promise<GitLensApi |
4545
{
4646
name: 'GitLens',
4747
createChannel: function (name: string) {
48-
const channel = new BufferedLogChannel(window.createOutputChannel(name), 500);
48+
const channel = new BufferedLogChannel(window.createOutputChannel(name, { log: true }), 500);
4949
context.subscriptions.push(channel);
5050

5151
if (logLevel === 'error' || logLevel === 'warn') {

0 commit comments

Comments
 (0)