Skip to content

Commit

Permalink
Added logger (#116-2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Sep 9, 2024
1 parent 3a1d984 commit 9b45e1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/controllers/PanelController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import type {
VariableDefintion,
} from '../types';
import { getEmbedWidgetUrl } from '../dh/dhc';
import { assertDefined, getDHThemeKey, getPanelHtml } from '../util';
import { assertDefined, getDHThemeKey, getPanelHtml, Logger } from '../util';
import { DhcService } from '../services';

const logger = new Logger('PanelController');

export class PanelController implements Disposable {
constructor(serverManager: IServerManager, panelService: IPanelService) {
this._panelService = panelService;
Expand All @@ -24,6 +26,8 @@ export class PanelController implements Disposable {
serverUrl: URL,
variables: VariableDefintion[]
): Promise<void> => {
logger.debug('openPanels', serverUrl, variables);

let lastPanel: vscode.WebviewPanel | null = null;

for (const { id, title } of variables) {
Expand Down

0 comments on commit 9b45e1f

Please sign in to comment.