Skip to content

Commit

Permalink
remove debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Mar 23, 2012
1 parent f78ec46 commit 43fc748
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/crawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ Crawler.prototype.createHTTPOptions = function(tag, timestamp) {

Crawler.XmlHandler = function(self) {
var handler = new htmlparser.DefaultHandler(function(err, dom) {
console.log("calling XmlHandler");
if (err) {
console.log(err.message);
} else {
Expand All @@ -64,7 +63,6 @@ Crawler.XmlHandler = function(self) {

Crawler.HttpHandler = function(self) {
var handler = function(response) {
console.log("calling HttpHandler");
response.setEncoding("utf8");
var response_body = "",
xml_handler = self.xml_handler;
Expand All @@ -84,16 +82,13 @@ Crawler.HttpHandler = function(self) {
};

Crawler.prototype.fetchAndSave = function(tag, now) {
console.log("fetchAndSave: tag=" + tag + " now=" + now);
if (!now) {
// This simulate the default parameter value
now = (Date.now() / 1000).toFixed();
}

var httpOptions = this.createHTTPOptions(tag, now);

console.log("get httpOptions=" + httpOptions.host + " path=" + httpOptions.path);
console.log(this.httpHandler);
req = http.get(httpOptions, this.httpHandler);
req.end();

Expand Down

0 comments on commit 43fc748

Please sign in to comment.