var loopback = require('loopback');
var boot = require('loopback-boot');
//var finishAuthConfig = require('./post-boot/auth');

var app = module.exports = loopback();

app.start = function appStart() {
  // start the web server
  console.log('start');
  return app.listen(function appListen() {
    app.emit('started');
    console.log('Web server listening at: %s', app.get('url'));
  });
};

// Bootstrap the application, configure models, datasources and middleware.
// Sub-apps like REST API are mounted via boot scripts.
console.log('boot');
boot(app, __dirname, function startApp(err, sys){

// start the server if `$ node server.js`
  if (require.main === module) {
    //finishAuthConfig(app);
    app.start();
  }
});




@@ -591,16 +591,81 @@
  sys)%7B%0A%0A
+  console.log(err);%0A  if (sys) %7B%0A    console.log('got sys');%0A  %7D%0A
 // start

Add more logging to server.js