1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-22 16:30:11 +00:00

chore: remove debugging console logs

This commit is contained in:
Ya Zhuang 2015-12-29 03:40:42 +08:00
parent 6b0ea0c7bd
commit 5dd3d1a3b4

View File

@ -16,7 +16,6 @@ Definition of the HtmlPngGenerator class.
var HtmlPngGenerator = module.exports = TemplateGenerator.extend({ var HtmlPngGenerator = module.exports = TemplateGenerator.extend({
init: function() { init: function() {
console.log('png generator init');
this._super( 'png', 'html' ); this._super( 'png', 'html' );
}, },
@ -24,7 +23,6 @@ console.log('png generator init');
Generate the binary PDF. Generate the binary PDF.
*/ */
onBeforeSave: function( info ) { onBeforeSave: function( info ) {
console.log('png generator onBeforeSave');
png( info.mk, info.outputFile ); png( info.mk, info.outputFile );
return null; // halt further processing return null; // halt further processing
} }
@ -36,10 +34,6 @@ console.log('png generator onBeforeSave');
*/ */
function png( markup, fOut ) { function png( markup, fOut ) {
console.log('>> #png()');
console.log(markup);
console.log(fOut);
require('webshot')( markup , { encoding: 'binary', siteType: 'html' } ) require('webshot')( markup , { encoding: 'binary', siteType: 'html' } )
.pipe( FS.createWriteStream( fOut ) ); .pipe( FS.createWriteStream( fOut ) );