Add logging
This commit is contained in:
parent
2915daade0
commit
64f28563fa
|
@ -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)
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue