Skip to content

Commit

Permalink
Fixes process info logging in development
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Aug 5, 2021
1 parent 6d51b4a commit c2c6608
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/scheduler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var clfdate = require("helper/clfdate");
var warmCache = require("./warmCache");
var schedule = require("node-schedule").scheduleJob;
var checkFeatuedSites = require("../brochure/routes/featured/check");
var config = require("config");
var publishScheduledEntries = require("./publish-scheduled-entries");
const os = require("os");
const fs = require("fs-extra");
Expand All @@ -21,8 +22,13 @@ module.exports = function () {
stdout
) {
if (err || !stdout) return;
console.log(clfdate(), "[STATS]", "top");
console.log(stdout);

if (config.environment === "development") {
// this is annoying in development
} else {
console.log(clfdate(), "[STATS]", "top");
console.log(stdout);
}
});

// Print cpu and memory information
Expand Down

0 comments on commit c2c6608

Please sign in to comment.