Skip to content

Commit

Permalink
Log generatedFields on each run. eduardoboucas#176
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Jun 13, 2018
1 parent 3ad5738 commit 28055c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Staticman.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ Staticman.prototype._applyInternalFields = function (data) {
Staticman.prototype._applyGeneratedFields = function (data) {
const generatedFields = this.siteConfig.get('generatedFields')

// Log what `generatedFields` looks like at this point - trying to fix #176
logger.info(
JSON.stringify({
generatedFields
}),
null,
2
)


if (!generatedFields) return data

Object.keys(generatedFields).forEach(field => {
Expand Down

0 comments on commit 28055c3

Please sign in to comment.