Skip to content

Commit

Permalink
Only log update binary env path if it was updated
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Dec 7, 2023
1 parent 6afb8de commit 6f6395b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/managers/BinaryManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ class BinaryManager {
const binaryPath = await this.findBinary(binary.name, binary.envVariable)
if (binaryPath) {
Logger.info(`[BinaryManager] Found ${binary.name} at ${binaryPath}`)
Logger.info(`[BinaryManager] Updating process.env.${binary.envVariable}`)
process.env[binary.envVariable] = binaryPath
if (process.env[binary.envVariable] !== binaryPath) {
Logger.info(`[BinaryManager] Updating process.env.${binary.envVariable}`)
process.env[binary.envVariable] = binaryPath
}
} else {
Logger.info(`[BinaryManager] ${binary.name} not found`)
missingBinaries.push(binary.name)
Expand Down

0 comments on commit 6f6395b

Please sign in to comment.