Skip to content

Commit

Permalink
server: fix cluster logging
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Nov 21, 2024
1 parent 56fdff3 commit 25df4f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/cluster/cluster-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,15 +379,15 @@ export function getScryptedClusterMode(): ['server' | 'client', string, number]

if (!mode) {
if (process.env.SCRYPTED_CLUSTER_ADDRESS) {
console.warn('SCRYPTED_CLUSTER_ADDRESS, but SCRYPTED_CLUSTER_MODE is not set. This setting will be ignored.');
console.warn('SCRYPTED_CLUSTER_ADDRESS is set but SCRYPTED_CLUSTER_MODE is not set. This setting will be ignored.');
delete process.env.SCRYPTED_CLUSTER_ADDRESS;
}
if (process.env.SCRPYTED_CLUSTER_SERVER) {
console.warn('SCRYPTED_CLUSTER_SERVER, but SCRYPTED_CLUSTER_MODE is not set. This setting will be ignored.');
console.warn('SCRYPTED_CLUSTER_SERVER is set but SCRYPTED_CLUSTER_MODE is not set. This setting will be ignored.');
delete process.env.SCRPYTED_CLUSTER_SERVER
}
if (process.env.SCRYPTED_CLUSTER_SECRET) {
console.warn('SCRYPTED_CLUSTER_SECRET, but SCRYPTED_CLUSTER_MODE is not set. This setting will be ignored.');
console.warn('SCRYPTED_CLUSTER_SECRET is set but SCRYPTED_CLUSTER_MODE is not set. This setting will be ignored.');
delete process.env.SCRYPTED_CLUSTER_SECRET;
}
return;
Expand Down

0 comments on commit 25df4f8

Please sign in to comment.