diff options
author | Florian Dold <florian@dold.me> | 2024-06-30 18:58:50 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-06-30 18:58:50 +0200 |
commit | 979a47093c5117d5ae8a4fcd4851ad1f5b1d9fbe (patch) | |
tree | 547f7def0550cbd1be7df26546360d925012d77d /packages | |
parent | 58ddc54ebc0b6671413ac119176091c74184f59b (diff) | |
download | wallet-core-979a47093c5117d5ae8a4fcd4851ad1f5b1d9fbe.tar.xz |
-logging
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-util/src/http-client/bank-integration.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-util/src/http-client/bank-integration.ts b/packages/taler-util/src/http-client/bank-integration.ts index 23740328b..1e0f7e79c 100644 --- a/packages/taler-util/src/http-client/bank-integration.ts +++ b/packages/taler-util/src/http-client/bank-integration.ts @@ -18,6 +18,7 @@ import { HttpRequestLibrary, readTalerErrorResponse } from "../http-common.js"; import { HttpStatusCode } from "../http-status-codes.js"; import { createPlatformHttpLib } from "../http.js"; import { LibtoolVersion } from "../libtool-version.js"; +import { Logger } from "../logging.js"; import { FailCasesByMethod, ResultByMethod, @@ -46,6 +47,8 @@ export type TalerBankIntegrationErrorsByMethod< prop extends keyof TalerBankIntegrationHttpClient, > = FailCasesByMethod<TalerBankIntegrationHttpClient, prop>; +const logger = new Logger("bank-integration.ts"); + /** * The API is used by the wallets. */ @@ -81,6 +84,7 @@ export class TalerBankIntegrationHttpClient { case HttpStatusCode.Ok: return opSuccessFromHttp(resp, codecForIntegrationBankConfig()); default: + logger.warn(`config request failed, status ${resp.status}`) return opUnknownFailure(resp, await readTalerErrorResponse(resp)); } } |