Skip to content

Commit

Permalink
Check App Setting for Node Env
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl committed Mar 8, 2024
1 parent 042e586 commit 101b64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azure-function/src/functions/scheduledCronTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { SecretClient } = require("@azure/keyvault-secrets");
const { setLogLevel } = require("@azure/logger");
const { SubscriptionClient } = require("@azure/arm-subscriptions");

const environment = process.env.NODE_ENV
const environment = process.env["APPSETTING_NODE_ENV"] || process.env["NODE_ENV"];

// Set logging level to "warning" for Prod, or "info" for Dev
const logLevel = environment && environment === "production" ? "error" : "warning"
Expand Down

0 comments on commit 101b64a

Please sign in to comment.