mirror of
https://github.com/pockethost/pockethost.git
synced 2026-03-09 10:22:48 +00:00
chore(pockethost): set logger level to Debug in CronService
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
||||
InstanceFields,
|
||||
InstanceId,
|
||||
LoggerService,
|
||||
LogLevelName,
|
||||
mkInstanceUrl,
|
||||
mkSingleton,
|
||||
MothershipAdminClientService,
|
||||
@@ -16,6 +17,7 @@ export type CronServiceConfig = SingletonBaseConfig & {}
|
||||
export const CronService = mkSingleton(async (config: Partial<CronServiceConfig>) => {
|
||||
const mirror = await MothershipMirrorService()
|
||||
const logger = (config.logger ?? LoggerService()).create(`CronService`)
|
||||
logger.setLevel(LogLevelName.Debug)
|
||||
const { dbg, error, info, warn } = logger
|
||||
info(`Starting`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user