Skip to content

Commit d47c0fe

Browse files
committed
--log-level critical is supposed to be supported
1 parent 3cea512 commit d47c0fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/log.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { execProcess } from "./process.ts";
2323
import { pandocBinaryPath } from "./resources.ts";
2424
import { Block, pandoc } from "./pandoc/json.ts";
2525

26-
export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR";
26+
export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR" | "CRITICAL";
2727

2828
export interface LogOptions {
2929
log?: string;
@@ -461,6 +461,7 @@ const levelMap: Record<
461461
info: "INFO",
462462
warning: "WARN",
463463
error: "ERROR",
464+
critical: "CRITICAL",
464465
};
465466

466467
export async function logPandocJson(

0 commit comments

Comments
 (0)