Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use debug instead of console.log, change successCalback position #9

Merged
merged 1 commit into from
Apr 22, 2016

Conversation

jason-hwang
Copy link
Contributor

  • Use debug instead of console.log.
  • Change successCalback position, which should be called in self.server.close.

@@ -140,19 +140,19 @@ Scheduler.prototype.startServer = function(successCallback, failureCallback) {
var host = server.address().address;
var port = server.address().port;

console.log('secc-scheduler listening at http://%s:%s', host, port);
debug('secc-scheduler listening at http://%s:%s', host, port);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's good to use 'console.log' at this time.
'cos, user need to know what's going on

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, my mistake : ) I can apply next patch.

@ivere27 ivere27 merged commit ad550fd into ivere27:master Apr 22, 2016
});

// Server connection event
server.on('connection', function (socket) {
// Add a newly connected socket
var socketId = self.nextSocketId++;
self.sockets[socketId] = socket;
console.log('socket', socketId, 'opened');
debug('socket', socketId, 'opened');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%s or +

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants