fix logging

This commit is contained in:
Florian Dold 2016-11-18 17:15:12 +01:00
parent 4b50db1998
commit 7838cdc901
2 changed files with 4 additions and 4 deletions

View File

@ -389,12 +389,12 @@ function handleBankRequest(wallet: Wallet, headerList: chrome.webRequest.HttpHea
if (amount) { if (amount) {
let callbackUrl = headers["x-taler-callback-url"]; let callbackUrl = headers["x-taler-callback-url"];
if (!callbackUrl) { if (!callbackUrl) {
console.log("201 not understood (X-Taler-Callback-Url missing)"); console.log("202 not understood (X-Taler-Callback-Url missing)");
return; return;
} }
let wtTypes = headers["x-taler-wt-types"]; let wtTypes = headers["x-taler-wt-types"];
if (!wtTypes) { if (!wtTypes) {
console.log("201 not understood (X-Taler-Wt-Types missing)"); console.log("202 not understood (X-Taler-Wt-Types missing)");
return; return;
} }
let params = { let params = {
@ -408,7 +408,7 @@ function handleBankRequest(wallet: Wallet, headerList: chrome.webRequest.HttpHea
let redirectUrl = uri.query(params).href(); let redirectUrl = uri.query(params).href();
return {redirectUrl}; return {redirectUrl};
} }
console.log("201 not understood"); console.log("202 not understood");
} }
// Useful for debugging ... // Useful for debugging ...

View File

@ -27,8 +27,8 @@
"src/cryptoLib.ts", "src/cryptoLib.ts",
"src/types-test.ts", "src/types-test.ts",
"decl/chrome/chrome.d.ts", "decl/chrome/chrome.d.ts",
"src/cryptoWorker.ts",
"src/wallet-test.ts", "src/wallet-test.ts",
"src/cryptoWorker.ts",
"src/emscriptif.ts", "src/emscriptif.ts",
"src/helpers.ts", "src/helpers.ts",
"src/http.ts", "src/http.ts",