Permalink
Browse files

Merge pull request #3 from node-migrator-bot/clean

Hi! I fixed some calls to "sys" for you!
  • Loading branch information...
2 parents 23eb23d + 938faca commit 9c94ae5bd21b0a744f774fe654e8853cd764fe23 @indexzero committed Jun 27, 2012
Showing with 6 additions and 6 deletions.
  1. +4 −4 bin/server
  2. +2 −2 lib/03authentication/pinpoint.js
View
@@ -1,6 +1,6 @@
#!/usr/bin/env node
-var sys = require('sys'),
+var util = require('util'),
path = require('path'),
argv = require('optimist').argv;
@@ -18,7 +18,7 @@ var help = [
].join('\n');
if (argv.h || argv.help) {
- return sys.puts(help);
+ return util.puts(help);
}
var target, options = {
@@ -32,9 +32,9 @@ target = argv.t || argv.target || '00getting-started';
var pinpoint = require(path.join('..', 'lib', target, 'pinpoint'));
pinpoint.start(options, function (err, server) {
if (err) {
- return sys.puts('Error starting pinpoint server: ' + err.message);
+ return util.puts('Error starting pinpoint server: ' + err.message);
}
- sys.puts('Pinpoint demo server listening for ' + target + ' on http://127.0.0.1:' + options.port);
+ util.puts('Pinpoint demo server listening for ' + target + ' on http://127.0.0.1:' + options.port);
});
@@ -6,7 +6,7 @@
*
*/
-var sys = require('sys'),
+var util = require('util'),
http = require('http'),
winston = require('winston'),
database = require('./database'),
@@ -69,7 +69,7 @@ exports.start = function (options, callback) {
var auth = options.basicAuth.split(':');
helpers.auth.username = auth[0];
helpers.auth.password = auth[1];
- sys.puts('Configuring HTTP Basic Auth. Base64 Encoded Username/Password: ' + helpers.base64.encode(auth[0] + ':' + auth[1]));
+ util.puts('Configuring HTTP Basic Auth. Base64 Encoded Username/Password: ' + helpers.base64.encode(auth[0] + ':' + auth[1]));
}
callback(null, exports.createServer(options.port, db));

0 comments on commit 9c94ae5

Please sign in to comment.