Procházet zdrojové kódy

stringify console.logs becouse of asynchrone nature from chromes interpretation... WAT

IgnatzHome před 7 roky
rodič
revize
778a29855f
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      client/lib/filter.js

+ 3 - 3
client/lib/filter.js

@@ -155,13 +155,13 @@ class AdvancedFilter {
 
   _arrayToSelector(commands)
   {
-    console.log('Parts: ', commands);
+    console.log('Parts: ', JSON.stringify(commands));
     try {
       //let changed = false;
       this._processConditions(commands);
-      console.log('Conditions: ', commands);
+      console.log('Conditions: ', JSON.stringify(commands));
       this._processLogicalOperators(commands);
-      console.log('Operator: ', commands);
+      console.log('Operator: ', JSON.stringify(commands));
     }
     catch (e){return { $in: [] };}
     return {$or: commands};