From f8108cffac92a04722106a87a300f85206cbb91d Mon Sep 17 00:00:00 2001 From: Amy Fromandi Date: Tue, 27 Aug 2024 08:46:30 -0500 Subject: [PATCH] adding logging --- v2/larkin.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/v2/larkin.ts b/v2/larkin.ts index 866395c8..9d824b6e 100644 --- a/v2/larkin.ts +++ b/v2/larkin.ts @@ -645,21 +645,12 @@ const { Client, Pool } = require("pg"); //get all units and summarize for columns http.get( //TODO: change url to match env. - "http://localhost:5432/v2/units?all&response=long", + "http://localhost:5432/api/v2/units?all&response=long", function (res) { var body = ""; res.on("data", function (chunk) { body += chunk; }); - - console.log(res) - console.log(body) - console.log(res.statusCode) - console.log(res.headers) - - console.log("redirected to ", res.headers.location) - - res.on("end", function () { try { var parsedBody = JSON.parse(body);