better debugs

This commit is contained in:
Girish Ramakrishnan 2016-09-21 13:35:53 -07:00
parent 735f5f1020
commit 8f03929265

View File

@ -42,6 +42,7 @@ function send(options, callback) {
function sendEndToEndTestResult(topic, versionInfo, stdout, stderr, attachmentFolder, callback) {
debug('Sending e2e test result for %s', topic);
debug('Creating attachements from folder ', attachmentFolder);
fs.readdir(attachmentFolder, function (error, files) {
var attachments = [];
@ -57,6 +58,8 @@ function sendEndToEndTestResult(topic, versionInfo, stdout, stderr, attachmentFo
ContentType: 'text/plain'
};
});
} else {
debug('Error reading attachment directory: ', error);
}
var mailOptions = {