Skip to content

Commit

Permalink
Refactor logLevel to remove redundancies
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimjaved12 committed Feb 17, 2025
1 parent 20da806 commit 5872972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package_scripts/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const hugoServer = (
port: 3000,
bind: "0.0.0.0",
themesDir: process.cwd(),
logLevel: opts.logLevel || "info",
logLevel: opts.logLevel,
...opts
}
return `hugo server ${u.getOptions(allOpts)}`
Expand Down Expand Up @@ -201,7 +201,7 @@ const startSiteAction = async (opts: StartOptions, cliOptNames: string[]) => {
await ensureHugoConfig("COURSE_HUGO_CONFIG_PATH")

const globalOpts = program.opts() as { logLevel: string }
const logLevel = globalOpts.logLevel || "info"
const logLevel = globalOpts.logLevel

startWebpackAnd({
name: "hugo",
Expand Down

0 comments on commit 5872972

Please sign in to comment.