mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Optimised web/ debug logs
no issue - optimised only for web/ folder, because it has used very general namespaces - the debug namespace must be specific, otherwise i run `DEBUG=ghost:api:*` and i get web debug logs and api folder debug logs - we can come up with a new namespace system, but for now it must be explicit enough
This commit is contained in:
parent
bd42ea33b5
commit
434a0435fd
10 changed files with 10 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
const debug = require('ghost-ignition').debug('admin');
|
||||
const debug = require('ghost-ignition').debug('web:admin:app');
|
||||
const express = require('express');
|
||||
const serveStatic = require('express').static;
|
||||
const config = require('../../config');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const debug = require('ghost-ignition').debug('admin:controller');
|
||||
const debug = require('ghost-ignition').debug('web:admin:controller');
|
||||
const path = require('path');
|
||||
const config = require('../../config');
|
||||
const updateCheck = require('../../update-check');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const debug = require('ghost-ignition').debug('admin:serviceworker');
|
||||
const debug = require('ghost-ignition').debug('web:admin:serviceworker');
|
||||
const path = require('path');
|
||||
|
||||
// Route: index
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// # API routes
|
||||
const debug = require('ghost-ignition').debug('api');
|
||||
const debug = require('ghost-ignition').debug('web:api:v0.1:app');
|
||||
const boolParser = require('express-query-boolean');
|
||||
const express = require('express');
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const debug = require('ghost-ignition').debug('api');
|
||||
const debug = require('ghost-ignition').debug('web:v2:admin:app');
|
||||
const boolParser = require('express-query-boolean');
|
||||
const express = require('express');
|
||||
const bodyParser = require('body-parser');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const debug = require('ghost-ignition').debug('api');
|
||||
const debug = require('ghost-ignition').debug('web:api:v2:content:app');
|
||||
const boolParser = require('express-query-boolean');
|
||||
const bodyParser = require('body-parser');
|
||||
const express = require('express');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const debug = require('ghost-ignition').debug('app');
|
||||
const debug = require('ghost-ignition').debug('web:parent');
|
||||
const express = require('express');
|
||||
const config = require('../config');
|
||||
const compress = require('compression');
|
||||
|
|
|
@ -2,7 +2,7 @@ const fs = require('fs-extra');
|
|||
const express = require('express');
|
||||
const url = require('url');
|
||||
const path = require('path');
|
||||
const debug = require('ghost-ignition').debug('custom-redirects');
|
||||
const debug = require('ghost-ignition').debug('web:shared:mw:custom-redirects');
|
||||
const config = require('../../../config');
|
||||
const common = require('../../../lib/common');
|
||||
const validation = require('../../../data/validation');
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const url = require('url');
|
||||
const path = require('path');
|
||||
const debug = require('ghost-ignition').debug('url-redirects');
|
||||
const debug = require('ghost-ignition').debug('web:shared:mw:url-redirects');
|
||||
const urlService = require('../../../services/url');
|
||||
|
||||
const _private = {};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const debug = require('ghost-ignition').debug('blog');
|
||||
const debug = require('ghost-ignition').debug('web:site:app');
|
||||
const path = require('path');
|
||||
const express = require('express');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue