mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
remove obsolete logging
This commit is contained in:
@@ -35,7 +35,7 @@ function generateDoc(id, callback) {
|
||||
callback(`pdflatex returned with code ${code}`);
|
||||
return;
|
||||
}
|
||||
console.log('PDF generated');
|
||||
console.log(`PDF ${id} generated`);
|
||||
callback(null, id);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -4,8 +4,6 @@ function convertLineBreaks(string){
|
||||
|
||||
module.exports = (options) => {
|
||||
|
||||
console.log(options);
|
||||
|
||||
const {
|
||||
template = 'brief-fam',
|
||||
subject = 'Betreff',
|
||||
|
||||
@@ -7,7 +7,7 @@ export function generatePdf(state){
|
||||
body: JSON.stringify(state)
|
||||
}).then(function(res) {
|
||||
if (res.status !== 200) {
|
||||
console.log('request failed');
|
||||
console.error('request failed');
|
||||
return;
|
||||
}
|
||||
return res.json();
|
||||
|
||||
@@ -8,9 +8,8 @@ function init() {
|
||||
init();
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
console.log('for real now');
|
||||
console.log('What are ya looking at?');
|
||||
} else {
|
||||
// use preact's devtools
|
||||
require('preact/devtools');
|
||||
// listen for HMR
|
||||
if (module.hot) {
|
||||
|
||||
Reference in New Issue
Block a user