Skip to content

Commit

Permalink
move logLevel to logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Aug 19, 2024
1 parent 4099e1b commit 86a3536
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ const logsDefault = {
export const build = async ({
signal = new AbortController().signal,
handleSIGINT = true,
logLevel = "info",
logs = logsDefault,
sourceDirectoryUrl,
buildDirectoryUrl,
Expand Down Expand Up @@ -291,7 +290,7 @@ build ${entryPointKeys.length} entry points`);
};
const rawKitchen = createKitchen({
signal,
logLevel,
logLevel: logs.level,
rootDirectoryUrl: sourceDirectoryUrl,
ignore,
// during first pass (craft) we keep "ignore:" when a reference is ignored
Expand Down Expand Up @@ -371,7 +370,7 @@ build ${entryPointKeys.length} entry points`);

const finalKitchen = createKitchen({
name: "shape",
logLevel,
logLevel: logs.level,
rootDirectoryUrl: sourceDirectoryUrl,
// here most plugins are not there
// - no external plugin
Expand Down Expand Up @@ -698,7 +697,7 @@ build ${entryPointKeys.length} entry points`);
try {
const result = await runBuild({
signal: operation.signal,
logLevel,
logLevel: logs.level,
});
return result;
} finally {
Expand Down

0 comments on commit 86a3536

Please sign in to comment.