mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
12 lines
344 B
JavaScript
12 lines
344 B
JavaScript
var 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) {
|
|
if (/MSIE/.test(navigator.userAgent)) {
|
|
console.log(msg, JSON.stringify(obj));
|
|
} else {
|
|
console.log(msg, "", obj);
|
|
}
|
|
};
|