Skip to content

Commit 4607fcd

Browse files
committed
logging response on basis of env
1 parent 75ddc87 commit 4607fcd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export async function updateSessionById(sessionId, data, lambdaCredentials){
4141
};
4242
try {
4343
let response = await axios.request(config);
44-
console.log(response.data);
44+
if (process.env.LT_CLIENT_LOG === "true"){
45+
console.log(response);
46+
}
4547
} catch (error) {
4648
console.error(error);
4749
}

0 commit comments

Comments
 (0)