Cleanup some files and setting logEvel based on dev env

This commit is contained in:
Fabian
2019-10-10 01:25:53 +02:00
parent 518d46f410
commit 62ef572fbf
3 changed files with 3 additions and 3 deletions

View File

@ -4,6 +4,9 @@ import config from "./config";
import { DatabaseManager } from "./database/database";
import { createServer } from "http";
import { ConnectionManager } from "./connection";
import { LoggingTypes } from "@hibas123/logging";
Logging.logLevel = config.dev ? LoggingTypes.Debug : LoggingTypes.Log;
DatabaseManager.init().then(() => {
const http = createServer(Web.callback());