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}`);
|
callback(`pdflatex returned with code ${code}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('PDF generated');
|
console.log(`PDF ${id} generated`);
|
||||||
callback(null, id);
|
callback(null, id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ function convertLineBreaks(string){
|
|||||||
|
|
||||||
module.exports = (options) => {
|
module.exports = (options) => {
|
||||||
|
|
||||||
console.log(options);
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
template = 'brief-fam',
|
template = 'brief-fam',
|
||||||
subject = 'Betreff',
|
subject = 'Betreff',
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export function generatePdf(state){
|
|||||||
body: JSON.stringify(state)
|
body: JSON.stringify(state)
|
||||||
}).then(function(res) {
|
}).then(function(res) {
|
||||||
if (res.status !== 200) {
|
if (res.status !== 200) {
|
||||||
console.log('request failed');
|
console.error('request failed');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return res.json();
|
return res.json();
|
||||||
|
|||||||
@@ -8,9 +8,8 @@ function init() {
|
|||||||
init();
|
init();
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'production') {
|
if (process.env.NODE_ENV === 'production') {
|
||||||
console.log('for real now');
|
console.log('What are ya looking at?');
|
||||||
} else {
|
} else {
|
||||||
// use preact's devtools
|
|
||||||
require('preact/devtools');
|
require('preact/devtools');
|
||||||
// listen for HMR
|
// listen for HMR
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
|
|||||||
Reference in New Issue
Block a user