Permalink
Browse files

Remove deprecated sys references.

  • Loading branch information...
1 parent 0a87964 commit 2254a21b54e07f4f6a1f71f62f29914dfe7ba40c Peter Scott committed Dec 16, 2010
Showing with 4 additions and 6 deletions.
  1. +2 −3 README.md
  2. +2 −3 example/basic.js
View
@@ -15,7 +15,6 @@ A node.js module for delivering static files.
Example from example/basic.js:
var
- sys = require('sys'),
path = require('path'),
http = require('http'),
paperboy = require('../lib/paperboy'),
@@ -30,7 +29,7 @@ Example from example/basic.js:
.addHeader('Expires', 300)
.addHeader('X-PaperRoute', 'Node')
.before(function() {
- sys.log('Received Request');
+ console.log('Received Request');
})
.after(function(statCode) {
log(statCode, req.url, ip);
@@ -51,7 +50,7 @@ Example from example/basic.js:
var logStr = statCode + ' - ' + url + ' - ' + ip;
if (err)
logStr += ' - ' + err;
- sys.log(logStr);
+ console.log(logStr);
}
## API Docs
View
@@ -1,5 +1,4 @@
var
- sys = require('sys'),
path = require('path'),
http = require('http'),
paperboy = require('../lib/paperboy'),
@@ -14,7 +13,7 @@ http.createServer(function(req, res) {
.addHeader('Expires', 300)
.addHeader('X-PaperRoute', 'Node')
.before(function() {
- sys.log('Received Request');
+ console.log('Received Request');
})
.after(function(statCode) {
log(statCode, req.url, ip);
@@ -35,5 +34,5 @@ function log(statCode, url, ip, err) {
var logStr = statCode + ' - ' + url + ' - ' + ip;
if (err)
logStr += ' - ' + err;
- sys.log(logStr);
+ console.log(logStr);
}

0 comments on commit 2254a21

Please sign in to comment.