From 3e0dc0652107a230914e59b6206ee0ba4db28297 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Thu, 14 Nov 2019 14:24:11 +0100 Subject: [PATCH] Adding version log on startup --- package.json | 2 +- src/index.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3cddf12..653367b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/realtimedb", - "version": "2.0.0-beta.5", + "version": "2.0.0-beta.6", "description": "", "main": "lib/index.js", "private": true, diff --git a/src/index.ts b/src/index.ts index 23c3bc2..e1aa47d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,9 +5,12 @@ import { DatabaseManager } from "./database/database"; import { createServer } from "http"; import { ConnectionManager } from "./connection"; import { LoggingTypes } from "@hibas123/logging"; +import * as pk from "../package.json"; Logging.logLevel = config.dev ? LoggingTypes.Debug : LoggingTypes.Log; +Logging.log("Starting Database version:", pk.version); + DatabaseManager.init().then(() => { const http = createServer(Web.callback()); ConnectionManager.bind(http);