Skip to content

Commit

Permalink
fix(loglevel): set default (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz authored Mar 18, 2022
1 parent f563654 commit abf0243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sandpack-client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
extractErrorDetails,
} from "./utils";

import type { SandpackLogLevel } from ".";
import { SandpackLogLevel } from ".";

export interface ClientOptions {
/**
Expand Down Expand Up @@ -298,7 +298,7 @@ export class SandpackClient {
showLoadingScreen: this.options.showLoadingScreen ?? true,
skipEval: this.options.skipEval || false,
clearConsoleDisabled: !this.options.clearConsoleOnFirstCompile,
logLevel: this.options.logLevel,
logLevel: this.options.logLevel ?? SandpackLogLevel.Info,
});
}

Expand Down

0 comments on commit abf0243

Please sign in to comment.