Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
martin308 committed Dec 30, 2022
1 parent 0393d6a commit 2de0b6f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/hub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,17 @@ class Hub {

this.logger.info('Calling API -> ', url);

return fetch(url, {
const res = await fetch(url, {
method: 'PUT',
body: JSON.stringify({ positions: { primary: position } }),
headers: {'Content-Type': 'application/json'},
});

const body = await res.text();

this.logger.info('Received Response Body -> ', body);

return res;
}

async getShades(): Promise<Array<Shade>> {
Expand Down

0 comments on commit 2de0b6f

Please sign in to comment.