gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: taler-util: trace-log respons


From: gnunet
Subject: [taler-wallet-core] branch master updated: taler-util: trace-log response headers
Date: Mon, 09 Sep 2024 16:22:43 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 08166af91 taler-util: trace-log response headers
08166af91 is described below

commit 08166af919024cf5e6dcdfadf67d5674c71790c3
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Sep 9 16:22:38 2024 +0200

    taler-util: trace-log response headers
---
 packages/taler-util/src/http-impl.qtart.ts | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/packages/taler-util/src/http-impl.qtart.ts 
b/packages/taler-util/src/http-impl.qtart.ts
index fbc80489c..0993a9566 100644
--- a/packages/taler-util/src/http-impl.qtart.ts
+++ b/packages/taler-util/src/http-impl.qtart.ts
@@ -19,9 +19,9 @@
 /**
  * Imports.
  */
-import { Logger, openPromise } from "@gnu-taler/taler-util";
+import { j2s, Logger, openPromise } from "@gnu-taler/taler-util";
 import { TalerError } from "./errors.js";
-import { HttpLibArgs, encodeBody, getDefaultHeaders } from "./http-common.js";
+import { encodeBody, getDefaultHeaders, HttpLibArgs } from "./http-common.js";
 import {
   Headers,
   HttpRequestLibrary,
@@ -173,7 +173,10 @@ export class HttpLibImpl implements HttpRequestLibrary {
       throw e;
     }
 
-    logger.trace(`got qtart http response, status ${res.status}`);
+    if (logger.shouldLogTrace()) {
+      logger.trace(`got qtart http response, status ${res.status}`);
+      logger.trace(`response headers: ${j2s(res.headers)}`);
+    }
 
     if (timeoutHandle != null) {
       clearTimeout(timeoutHandle);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]