Skip to content

Commit

Permalink
Fixed: startup crash when env variable is not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperioOne committed Mar 7, 2024
1 parent b4cbc76 commit cac86cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const LoggerConfigurator = (sinks: LoggerSink[]) => {
export const Log = new GlobalLogger(emitter);

export function try_parse_log_level(value: string): LogLevelType | undefined {
switch (value.toUpperCase()) {
switch (value?.toUpperCase()) {
case "ERROR":
return LogLevel.ERROR;
case "WARN":
Expand Down

0 comments on commit cac86cf

Please sign in to comment.