Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
fix(contenttype): some more detailed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Dec 30, 2015
1 parent 8381fec commit 0765dd1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/admin/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ ContentType.prototype.getData = function (reset) {
let cache = this.page.cache(cacheKey);

if (cache && !reset) {
this.page.logger.debug({ contentType: this.id }, 'Found cached data for content type');
return cache;
}

this.page.logger.debug({ contentType: this.id }, 'Looking up new data for content type');

let result = this.getDataQuery()
.catch(err => {
this.page.logger.error(err, 'Failed to load data for', this.id);
Expand Down

0 comments on commit 0765dd1

Please sign in to comment.