remove unwanted log

This commit is contained in:
SrGooglo 2025-02-11 22:34:20 +00:00
parent d69579c9fd
commit 1cfe4f4e06

View File

@ -2,8 +2,6 @@ import { Server } from "linebridge"
import B2 from "backblaze-b2" import B2 from "backblaze-b2"
import hePkg from "hyper-express/package.json"
import DbManager from "@shared-classes/DbManager" import DbManager from "@shared-classes/DbManager"
import StorageClient from "@shared-classes/StorageClient" import StorageClient from "@shared-classes/StorageClient"
import CacheService from "@shared-classes/CacheService" import CacheService from "@shared-classes/CacheService"
@ -20,7 +18,7 @@ class API extends Server {
static enableWebsockets = true static enableWebsockets = true
middlewares = { middlewares = {
...SharedMiddlewares ...SharedMiddlewares,
} }
contexts = { contexts = {
@ -37,8 +35,6 @@ class API extends Server {
}) })
async onInitialize() { async onInitialize() {
console.log(`Using HyperExpress v${hePkg.version}`)
global.sse = this.contexts.SSEManager global.sse = this.contexts.SSEManager
if (process.env.B2_KEY_ID && process.env.B2_APP_KEY) { if (process.env.B2_KEY_ID && process.env.B2_APP_KEY) {
@ -51,11 +47,13 @@ class API extends Server {
await this.contexts.b2Storage.authorize() await this.contexts.b2Storage.authorize()
} else { } else {
console.warn("B2 storage not configured on environment, skipping...") console.warn(
"B2 storage not configured on environment, skipping...",
)
} }
await this.queuesManager.initialize({ await this.queuesManager.initialize({
redisOptions: this.engine.ws.redis.options redisOptions: this.engine.ws.redis.options,
}) })
await this.contexts.db.initialize() await this.contexts.db.initialize()
await this.contexts.storage.initialize() await this.contexts.storage.initialize()