Skip to content

Commit d6a2b8a

Browse files
committed
Debug: Add buildConfiguration change logs
It could be useful to troubleshoot future errors linked to this event.
1 parent 21a8b85 commit d6a2b8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/src/ui/BitbakeConfigPicker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import * as vscode from 'vscode'
77
import { type BitbakeSettings } from '../lib/src/BitbakeSettings'
88
import assert from 'assert'
9+
import { logger } from '../lib/src/utils/OutputLogger'
910

1011
export class BitbakeConfigPicker {
1112
readonly statusBarItem: vscode.StatusBarItem
@@ -22,6 +23,7 @@ export class BitbakeConfigPicker {
2223
this._activeBuildConfiguration = value
2324
this.onActiveConfigChanged.fire(value)
2425
void this.memento?.update('BitbakeConfigPicker.activeBuildConfiguration', value)
26+
logger.info(`BitBake buildConfiguration changed to ${value}`)
2527
}
2628

2729
constructor (bitbakeSettings: BitbakeSettings, context: vscode.ExtensionContext) {

0 commit comments

Comments
 (0)