Commit f120b25a authored by Jason Salyers's avatar Jason Salyers

[JES] Move the logging of the bridge call below the observer manipulation to...

[JES] Move the logging of the bridge call below the observer manipulation to make future errors easier to spot if any more functions have problems
parent 768e9466
......@@ -8,12 +8,6 @@ import {
} from 'app/utils/CrossPosts';
export async function callBridge(method, params) {
console.log(
'call bridge',
method,
params && JSON.stringify(params).substring(0, 200)
);
// [JES] Hivemind throws an exception if you call for my/[trending/payouts/new/etc] with a null observer
// so just delete the 'my' tag if there is no observer specified
if (
......@@ -35,6 +29,12 @@ export async function callBridge(method, params) {
)
params.observer = $STM_Config.default_observer;
console.log(
'call bridge',
method,
params && JSON.stringify(params).substring(0, 200)
);
return new Promise(function(resolve, reject) {
api.call('bridge.' + method, params, function(err, data) {
if (err) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment