chore(xo-server): remove useless entry point

Introduced by 254558e9d

Due to ESM, it's no longer easy to alter `DEBUG` before all instances of `debug` are loaded, which makes it useless.
This commit is contained in:
Julien Fontanet 2021-05-20 10:16:23 +02:00
parent d986f00b6a
commit 1d673bf6ff
2 changed files with 2 additions and 13 deletions

View File

@ -1,11 +0,0 @@
'use strict'
// ===================================================================
// Enable xo logs by default.
if (process.env.DEBUG === undefined) {
process.env.DEBUG = 'app-conf,xo:*,-xo:api'
}
// Import the real main module.
export { default } from './dist/index.mjs'

View File

@ -6,7 +6,7 @@ import execPromise from 'exec-promise'
import { catchGlobalErrors } from '@xen-orchestra/log/configure.js'
import { createLogger } from '@xen-orchestra/log'
import boostrap from '../index.mjs'
import main from './index.mjs'
// ===================================================================
@ -33,4 +33,4 @@ global.Promise = Bluebird
catchGlobalErrors(createLogger('xo:xo-server'))
execPromise(boostrap)
execPromise(main)