1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

Disable info log on SDK CLI (#17834)

This commit is contained in:
Bernd Schoolmann
2025-12-08 15:26:36 +01:00
committed by GitHub
parent e5e3e99fa4
commit 2fd3923c30
2 changed files with 5 additions and 2 deletions

View File

@@ -3,6 +3,8 @@ import * as sdk from "@bitwarden/sdk-internal";
export class CliSdkLoadService extends SdkLoadService {
async load(): Promise<void> {
// CLI uses stdout for user interaction / automations so we cannot log info / debug here.
SdkLoadService.logLevel = sdk.LogLevel.Error;
const module = await import("@bitwarden/sdk-internal/bitwarden_wasm_internal_bg.wasm");
(sdk as any).init(module);
}