Skip to content

Commit

Permalink
fix: more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala committed Nov 8, 2024
1 parent 3d7cfd2 commit f38812e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,11 @@ export async function createPipelineHtmlSource(
}
);
const text = await response.text();
Log().info("RESPONSE CREATE HTML: ", response);
Log().info("RESPONSE.TEXT CREATE HTML: ", text);
Log().info("RESPONSE.STATUS CREATE HTML: ", response.status);

if (response.ok) {
if (response.status === 201) {
if (text.trim().length > 0) {
Log().warn('Unexpected content for 201 response:', text);
}
Expand Down Expand Up @@ -365,6 +368,9 @@ export async function createPipelineMediaSource(
}
);
const text = await response.text();
Log().info("RESPONSE CREATE MEDIA: ", response);
Log().info("RESPONSE.TEXT CREATE MEDIA: ", text);
Log().info("RESPONSE.STATUS CREATE MEDIA: ", response.status);

if (response.status === 201) {
if (text.trim().length > 0) {
Expand Down

0 comments on commit f38812e

Please sign in to comment.