Skip to content

Commit

Permalink
remove excessive debugers
Browse files Browse the repository at this point in the history
  • Loading branch information
jackellenberger committed Aug 27, 2018
1 parent f2eafd5 commit 3651dd8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Logs
logs
*.log
debug/

# Runtime data
pids
Expand Down
3 changes: 0 additions & 3 deletions lib/slack.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ function Slack(opts, debug) {
var res = yield request(load);
var $ = cheerio.load(res[0].body);
if (this.debug) write($('title').text(), $.html());
if (this.debug) fs.writeFileSync('debug/login_page_response.html', res);
opts.formData = {
signin: $('#signin_form input[name="signin"]').attr('value'),
redir: $('#signin_form input[name="redir"]').attr('value'),
Expand Down Expand Up @@ -118,7 +117,6 @@ function Slack(opts, debug) {
formData: opts.formData
};
var res = yield request(load);
if (this.debug) fs.writeFileSync('debug/logged_in_page_response.html', res);
if(res[0].body.indexOf("Sorry, you entered an incorrect email address or password.") != -1){
throw new Error('Login error: incorrect username / password');
}
Expand Down Expand Up @@ -177,7 +175,6 @@ function Slack(opts, debug) {
jar: opts.jar,
followAllRedirects: true
}, function(err, res, body) {
if (this.debug) fs.writeFileSync('debug/emoji_upload_response.html', body);
if (err || !body) return reject(err);
resolve(body);
});
Expand Down

0 comments on commit 3651dd8

Please sign in to comment.