mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Added different logging style when running in browser.
This commit is contained in:
7
src/js/utils.web.js
Normal file
7
src/js/utils.web.js
Normal file
@@ -0,0 +1,7 @@
|
||||
exports = module.exports = require('./utils.js');
|
||||
|
||||
// We override this function for browsers, because they print objects nicer
|
||||
// natively than JSON.stringify can.
|
||||
exports.logObject = function (msg, obj) {
|
||||
console.log(msg, "", obj);
|
||||
};
|
||||
Reference in New Issue
Block a user