user преди 6 години
родител
ревизия
a01a0ffb39
променени са 3 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 2 0
      lib/index.js
  2. 1 1
      lib/index.js.map
  3. 2 0
      src/index.ts

+ 2 - 0
lib/index.js

@@ -208,6 +208,7 @@ class BankClient {
                 method: 'PUT',
                 url: topicURL
             });
+            console.log('appended to ', peerAddr, topic, hash, replaceHash, deleteHash, result);
         });
     }
     retrievePrivate(peerAddr, topic) {
@@ -244,6 +245,7 @@ class BankClient {
             if (existing != null) {
                 return existing;
             }
+            console.log('creating new contact', peerId, addressType, addressValue);
             return yield this.createContact(peerId, addressType, addressValue);
         });
     }

Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
lib/index.js.map


+ 2 - 0
src/index.ts

@@ -203,6 +203,7 @@ export class BankClient {
         method: 'PUT',
         url: topicURL
       });
+      console.log('appended to ', peerAddr, topic, hash, replaceHash, deleteHash, result);
     }
 
     public async retrievePrivate(peerAddr: string, topic: string) {
@@ -237,6 +238,7 @@ export class BankClient {
       if (existing != null) {
         return existing;
       }
+      console.log('creating new contact', peerId, addressType, addressValue);
       return await this.createContact(peerId, addressType, addressValue);
     }