Skip to content

Commit

Permalink
adding logging
Browse files Browse the repository at this point in the history
  • Loading branch information
amyfromandi committed Aug 27, 2024
1 parent 91ac696 commit f8108cf
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions v2/larkin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f8108cf

Please sign in to comment.