[Pkg-javascript-commits] [node-stream-http] 50/208: Remove extraneous logs in test server

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 13 13:39:26 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stream-http.

commit cc4bdfb0e4340530776a6d952b50f4b37502e653
Author: John Hiesey <john at hiesey.com>
Date:   Sun Jul 12 18:27:12 2015 -0700

    Remove extraneous logs in test server
---
 test/server/index.js | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/test/server/index.js b/test/server/index.js
index 3b5a709..fad8c82 100644
--- a/test/server/index.js
+++ b/test/server/index.js
@@ -50,7 +50,6 @@ app.get('/auth', function (req, res) {
 	var user = basicAuth(req)
 
 	if (!user || user.name !== 'TestUser' || user.pass !== 'trustno1') {
-		console.log(user)
 		res.setHeader('WWW-Authenticate', 'Basic realm="example"')
 		res.end('Access denied')
 	} else {
@@ -69,7 +68,6 @@ app.use(function (req, res, next) {
 	var parsed = url.parse(req.url, true)
 
 	if ('copies' in parsed.query) {
-		console.log('new request:', parsed.path)
 		var totalCopies = parseInt(parsed.query.copies, 10)
 		function fail () {
 			res.statusCode = 500
@@ -90,8 +88,6 @@ app.use(function (req, res, next) {
 				if (copies === 0) 
 					return res.end()
 
-				if (parsed.path.indexOf('browserify.png') >= 0)
-					console.log('writing', data.length, 'bytes')
 				res.write(data, function (err) {
 					if (err)
 						return fail()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-http.git



More information about the Pkg-javascript-commits mailing list