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:
parent
d986f00b6a
commit
1d673bf6ff
@ -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'
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user