Server-side console.log doesn't show anything in my terminal


#1
// server/methods.js
Meteor.methods({
  createReceipt: function(values) {
    console.log("Created receipt");
    console.log("test");

    if (!Meteor.userId()) {
      throw new Meteor.Error("not-authorized");
    }

    var receipt = {
      nit: values['nit'],
      userId: Meteor.userId()
    };

    var receiptId = Receipts.insert(receipt);
    console.log("Created receipt", receiptId);
  }
});

When I execute this, nothing is displayed inside my terminal. I’m using Mac OSX Mavericks with https://github.com/mathiasbynens/dotfiles. Any ideas?

sergiotapia at Sergios-iMac in ~/Work/playground on master [!?]
$ meteor run --settings server/settings.json
[[[[[ ~/Work/playground ]]]]]                       

=> Started proxy.                             
=> Started MongoDB.                           
=> Started your app.                          

=> App running at: http://localhost:3000/

#2

Did you ever figure out what was going on? I have a similar issue where sometimes my console.logs in method calls do not show up in the the terminal on the server so I can’t diagnose why a particular issue is failing.


#3

Same here, in a Meteor.method that is being called by the client.


#4

Are you using mgd:validated-method?