Add logging

This commit is contained in:
LordMathis 2017-11-07 16:01:53 +01:00
parent 2915daade0
commit 64f28563fa
3 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,6 @@ app.listen(port, function(error) {
if (error) {
console.error(error)
} else {
console.info("==> Listening on port %s", port)
console.info("[Server] Listening on port %s", port)
}
})

View File

@ -28,7 +28,6 @@ function fileMetadata(filepath) {
function compile(filepath, data, fileData, callback) {
const frontMatter = fm(fileData);
console.log(frontMatter);
const rendered = render(frontMatter.body);
const metadata = fileMetadata(filepath);
@ -67,6 +66,7 @@ Compiler.prototype.addFile = function(filepath, callback) {
if (err) throw err;
this.data.posts.push(result);
console.log("[Compiler] File %s compiled", filepath);
callback();
});

View File

@ -19,6 +19,7 @@ module.exports = function() {
}
function compile(files, callback) {
console.log("[Scanner] Discovered files: " + files);
async.each(files, compileFile, (err) => {
if (err) throw err;
callback();