Adding version log on startup

This commit is contained in:
Fabian Stamm 2019-11-14 14:24:11 +01:00
parent 50268d05c5
commit 3e0dc06521
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@hibas123/realtimedb", "name": "@hibas123/realtimedb",
"version": "2.0.0-beta.5", "version": "2.0.0-beta.6",
"description": "", "description": "",
"main": "lib/index.js", "main": "lib/index.js",
"private": true, "private": true,

View File

@ -5,9 +5,12 @@ import { DatabaseManager } from "./database/database";
import { createServer } from "http"; import { createServer } from "http";
import { ConnectionManager } from "./connection"; import { ConnectionManager } from "./connection";
import { LoggingTypes } from "@hibas123/logging"; import { LoggingTypes } from "@hibas123/logging";
import * as pk from "../package.json";
Logging.logLevel = config.dev ? LoggingTypes.Debug : LoggingTypes.Log; Logging.logLevel = config.dev ? LoggingTypes.Debug : LoggingTypes.Log;
Logging.log("Starting Database version:", pk.version);
DatabaseManager.init().then(() => { DatabaseManager.init().then(() => {
const http = createServer(Web.callback()); const http = createServer(Web.callback());
ConnectionManager.bind(http); ConnectionManager.bind(http);