@bsv/wallet-toolbox 1.7.5 → 1.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/mobile/out/src/WalletLogger.d.ts.map +1 -1
- package/mobile/out/src/WalletLogger.js +15 -9
- package/mobile/out/src/WalletLogger.js.map +1 -1
- package/mobile/package-lock.json +2 -2
- package/mobile/package.json +1 -1
- package/out/src/WalletLogger.d.ts.map +1 -1
- package/out/src/WalletLogger.js +15 -9
- package/out/src/WalletLogger.js.map +1 -1
- package/out/src/storage/remoting/StorageServer.d.ts.map +1 -1
- package/out/src/storage/remoting/StorageServer.js +9 -3
- package/out/src/storage/remoting/StorageServer.js.map +1 -1
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/WalletLogger.ts +14 -7
- package/src/storage/remoting/StorageServer.ts +4 -0
package/package.json
CHANGED
package/src/WalletLogger.ts
CHANGED
|
@@ -108,13 +108,20 @@ export class WalletLogger implements WalletLoggerInterface {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
flush(): object | undefined {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
if (this.logs.length > 0) {
|
|
112
|
+
const trace = this.toLogString()
|
|
113
|
+
const output = this.isError ? console.error : console.log
|
|
114
|
+
if (this.flushFormat === 'json') {
|
|
115
|
+
const name = this.logs[0].log
|
|
116
|
+
const log = {
|
|
117
|
+
name,
|
|
118
|
+
trace
|
|
119
|
+
}
|
|
120
|
+
output(JSON.stringify(log))
|
|
121
|
+
} else {
|
|
122
|
+
output(trace)
|
|
123
|
+
}
|
|
124
|
+
}
|
|
118
125
|
const r = this.isOrigin ? undefined : this.toWalletLoggerJson()
|
|
119
126
|
return r
|
|
120
127
|
}
|
|
@@ -165,6 +165,10 @@ export class StorageServer {
|
|
|
165
165
|
logger = this.makeLogger(params[1]['logger'])
|
|
166
166
|
params[1]['logger'] = logger
|
|
167
167
|
logger.group(`StorageSever ${method}`)
|
|
168
|
+
const userId = params[0]?.['identityKey']
|
|
169
|
+
const identityKey = params[0]?.['identityKey']
|
|
170
|
+
if (userId) logger.log(`userId: ${userId}`)
|
|
171
|
+
if (identityKey) logger.log(`identityKey: ${identityKey}`)
|
|
168
172
|
}
|
|
169
173
|
|
|
170
174
|
try {
|