We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea4ed22 commit 02d2196Copy full SHA for 02d2196
src/util/call-comment.ts
@@ -1,5 +1,6 @@
1
-import { CallDirection, CallState } from "../models";
2
import moment from "moment";
+import { CallDirection, CallState } from "../models";
3
+import { errorLogger } from "./logger.util";
4
5
export function getCommentSubject(
6
state: CallState,
@@ -43,6 +44,12 @@ export function getCommentSubject(
43
44
45
function getProductName() {
46
const productName = process.env.PRODUCT_NAME;
47
+
48
+ if (!productName)
49
+ errorLogger(
50
+ "getProductName",
51
+ "Missing environment variable PRODUCT_NAME, using CLINQ."
52
+ );
53
return productName || "CLINQ";
54
}
55
0 commit comments