Skip to content

Commit c25f484

Browse files
author
joeltaylor
committed
Remove old console.logs
1 parent 2f95f73 commit c25f484

File tree

8 files changed

+1
-16
lines changed

8 files changed

+1
-16
lines changed

server/controllers/admin.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ router.
2727
var slug = req.body.slug;
2828
var userEmail = req.body.userEmail;
2929

30-
console.log(slug, userEmail);
3130
Articles.approve(storyId, function(err) {
3231
Mailer.postAccepted(slug, userEmail);
3332
res.send(true);

server/controllers/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ router.
1111
}).
1212

1313
post('/subscribe', parseForm, function(req, res) {
14-
console.log("in subscribe");
1514
mailchimpApi.subscribe(req.body.email, function(err, data){
1615
res.json({error: err, data: data});
1716
});

server/controllers/news.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ router.
171171
args.body = req.body.body;
172172
args.url = req.body.url;
173173
args.user = req.session.passport.user;
174-
console.log(args)
175174
Articles.create(args, function(err) {
176175
if(err) { throw err };
177176
res.redirect('/news/pending');

server/services/akismetor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ var createAkismetHash = function(req, comment) {
1919
};
2020

2121
var Akismetor = {
22+
// For testing
2223
verifyKey() {
2324
client.verifyKey(function(err, valid) {
2425
if (valid) {

server/services/github-api.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ var GithubApi = {
1414
// get emails using oauth token
1515
request(options, function(error, response, body) {
1616

17-
console.log(error);
18-
console.log(response);
19-
console.log(body);
20-
2117
var emails = body.filter(function(email) {
2218
return (email.verified && email.primary);
2319
return email.verified;

server/services/mailchimpApi.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ var mc = new mcapi.Mailchimp(process.env.MAILCHIMP_API);
33

44
var mailchimpApi = {
55
subscribe(email, cb) {
6-
console.log("here");
76
mc.lists.subscribe(
87
{
98
id: process.env.LIST_ID,

server/services/mailer.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ var Mailer = {
2222
{
2323
//uh oh, there was an error
2424
if (error) console.log( JSON.stringify(error) );
25-
26-
//everything's good, lets see what mandrill said
27-
else console.log(response);
2825
});
2926
},
3027
postDenied(url, userEmail, reasonDenied) {
@@ -52,9 +49,6 @@ var Mailer = {
5249
{
5350
//uh oh, there was an error
5451
if (error) console.log( JSON.stringify(error) );
55-
56-
//everything's good, lets see what mandrill said
57-
else console.log(response);
5852
});
5953
}
6054
}

server/views/admin/index.jade

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ block inline_javascript
111111
beforeSend: setHeader
112112
})
113113
.done(function(response) {
114-
console.log(response);
115114
if (response === true) {
116115
$('#story-' + storyId).remove();
117116
notify('success', 'The story has been approved.');
@@ -150,7 +149,6 @@ block inline_javascript
150149
beforeSend: setHeader
151150
})
152151
.done(function(response) {
153-
console.log(response);
154152
if (response === true) {
155153
$('#story-' + storyId).remove();
156154
notify('success', 'The story has been denied.');

0 commit comments

Comments
 (0)