Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Hinek <[email protected]>
  • Loading branch information
frankhinek committed Nov 20, 2023
1 parent 3c62a78 commit 32ffeb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/agent/src/dwn-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ export class DwnManager {
if (!dwnReply) {
throw new Error(JSON.stringify(errorMessages));
}
console.log('dwnReply', JSON.stringify(dwnReply, null, 2));
console.log('dwnRpcRequest', JSON.stringify(dwnRpcRequest, null, 2));

return {
message : dwnRpcRequest.message,
Expand Down
6 changes: 6 additions & 0 deletions packages/api/src/web5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ export class Web5 {
static async connect(options: Web5ConnectOptions = {}) {
let { agent, appData, connectedDid, sync, techPreview } = options;

console.log('!!!!!!!!!!!!!!!!!!!!!');
console.log('!!!!!!!!!!!!!!!!!!!!!');
console.log('!!!!!!!!!!!!!!!!!!!!!');
console.log('!!!!!!!!!!!!!!!!!!!!!');
console.log('!!!!!!!!!!!!!!!!!!!!!');

if (agent === undefined) {
// A custom Web5Agent implementation was not specified, so use default managed user agent.
const userAgent = await Web5UserAgent.create({ appData });
Expand Down

0 comments on commit 32ffeb1

Please sign in to comment.