Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Fbasham committed Nov 23, 2023
1 parent a101cda commit 42bdc94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/api/submit-feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { postFeedbackToGcNotify } from "../../lib/notify/postFeedbackToGcNotify"

export default async function handler(req, res) {
const data = req.body;
console.log(process.env)
console.log(process.env);
if (!data["what-was-wrong"]) {
res.status(400).json({ message: "required field missing" });
} else {
Expand All @@ -14,7 +14,7 @@ export default async function handler(req, res) {
throw new Error("bad request");
}
} catch (e) {
console.error("Failed to post to GC Notify", e);
console.error("Failed to post to GC Notify");
res.status(500).json({ message: "something went wrong" });
}
}
Expand Down

0 comments on commit 42bdc94

Please sign in to comment.