File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import {createRequire} from "module";
44import path from "path" ;
55import { getConsoleLogPrefix } from "../../utils/getConsoleLogPrefix.js" ;
66import { runningInBun , runningInElectron } from "../../utils/runtime.js" ;
7- import { BuildGpu , LlamaLogLevel } from "../types.js" ;
7+ import { BuildGpu } from "../types.js" ;
88import { LlamaLogLevelToAddonLogLevel } from "../Llama.js" ;
9- import { newGithubIssueUrl } from "../../config.js" ;
9+ import { defaultBindingTestLogLevel , newGithubIssueUrl } from "../../config.js" ;
1010import { getPlatform } from "./getPlatform.js" ;
1111import type { BindingModule } from "../AddonTypes.js" ;
1212
@@ -274,7 +274,7 @@ if (process.env.TEST_BINDING_CP === "true" && (process.parentPort != null || pro
274274 try {
275275 binding = require ( message . bindingBinaryPath ) ;
276276
277- const errorLogLevel = LlamaLogLevelToAddonLogLevel . get ( LlamaLogLevel . error ) ;
277+ const errorLogLevel = LlamaLogLevelToAddonLogLevel . get ( defaultBindingTestLogLevel ) ;
278278 if ( errorLogLevel != null )
279279 binding . setLoggerLogLevel ( errorLogLevel ) ;
280280
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ export const defaultLlamaCppDebugMode = env.get("NODE_LLAMA_CPP_DEBUG")
7373export const defaultSkipDownload = env . get ( "NODE_LLAMA_CPP_SKIP_DOWNLOAD" )
7474 . default ( "false" )
7575 . asBool ( ) ;
76+ export const defaultBindingTestLogLevel = env . get ( "NODE_LLAMA_CPP_BINDING_TEST_LOG_LEVEL" )
77+ . default ( LlamaLogLevel . error )
78+ . asEnum ( LlamaLogLevelValues ) ;
7679export const defaultXpacksStoreDirectory = env . get ( "NODE_LLAMA_CPP_XPACKS_STORE_FOLDER" )
7780 . default ( localXpacksStoreDirectory )
7881 . asString ( ) ;
You can’t perform that action at this time.
0 commit comments