diff --git a/standard_Operations.html b/standard_Operations.html index 473c9af..a8b887e 100644 --- a/standard_Operations.html +++ b/standard_Operations.html @@ -7206,7 +7206,7 @@ Bitcoin.Util = { privKey: key.getBitcoinWalletImportFormat() } } catch (e) { - console.log(e); + console.error(e); } }, @@ -7243,7 +7243,7 @@ Bitcoin.Util = { else return false; } catch (e) { - console.log(e); + console.error(e); } }, @@ -8625,11 +8625,11 @@ Bitcoin.Util = { return new Promise((resolve, reject) => { this.startUpFunctions[fname]().then(result => { this.callStartUpFunction.completed += 1 - console.log(`${result}\nCompleted ${this.callStartUpFunction.completed}/${this.callStartUpFunction.total} Startup functions`) + reactor.dispatchEvent("startUpSuccessLog",`${result}\nCompleted ${this.callStartUpFunction.completed}/${this.callStartUpFunction.total} Startup functions`) resolve(true) }).catch(error => { this.callStartUpFunction.failed += 1 - console.error(`${error}\nFailed ${this.callStartUpFunction.failed}/${this.callStartUpFunction.total} Startup functions`) + reactor.dispatchEvent("startUpErrorLog",`${error}\nFailed ${this.callStartUpFunction.failed}/${this.callStartUpFunction.total} Startup functions`) reject(false) }) }) @@ -8699,6 +8699,12 @@ Bitcoin.Util = { } } + reactor.registerEvent("startUpSuccessLog"); + reactor.addEventListener("startUpSuccessLog", log => console.log(log)) + + reactor.registerEvent("startUpSuccessLog"); + reactor.addEventListener("startUpErrorLog", log => console.error(log)) + function onLoadStartUp() { //addStartUpFunction('Sample', Promised Function)