From 8b7f04ad54f6a59d20a2450c341d95a5d317e736 Mon Sep 17 00:00:00 2001 From: "Arrobo, Gabriel" Date: Wed, 11 Dec 2024 17:26:02 -0800 Subject: [PATCH] Enable DRSM and other components logging Signed-off-by: Arrobo, Gabriel --- VERSION | 2 +- logger/logger.go | 4 ++-- logger/logger_config.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 424d5b0..c04c650 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.7-dev +1.2.7 diff --git a/logger/logger.go b/logger/logger.go index 5d14839..0ff7783 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -23,7 +23,6 @@ var ( AppLog *zap.SugaredLogger DrsmLog *zap.SugaredLogger FsmLog *zap.SugaredLogger - PathLog *zap.SugaredLogger UtilLog *zap.SugaredLogger Util3GPPLog *zap.SugaredLogger atomicLevel zap.AtomicLevel @@ -55,9 +54,10 @@ func init() { panic(err) } - UtilLog = log.Sugar().With("component", "LIB", "category", "Util") + AppLog = log.Sugar().With("component", "dbtestapp", "category", "mongoapi") DrsmLog = log.Sugar().With("component", "LIB", "category", "DRSM") FsmLog = log.Sugar().With("component", "LIB", "category", "FSM") + UtilLog = log.Sugar().With("component", "LIB", "category", "Util") Util3GPPLog = log.Sugar().With("component", "LIB", "category", "Util3GPP") } diff --git a/logger/logger_config.go b/logger/logger_config.go index 525afe3..c8d1990 100644 --- a/logger/logger_config.go +++ b/logger/logger_config.go @@ -30,7 +30,7 @@ type Logger struct { SCTPLB *LogSetting `yaml:"SCTPLB" valid:"optional"` Aper *LogSetting `yaml:"Aper" valid:"optional"` - FSM *LogSetting `yaml:"FSM" valid:"optional"` + Util *LogSetting `yaml:"Util" valid:"optional"` MongoDBLibrary *LogSetting `yaml:"MongoDBLibrary" valid:"optional"` NAS *LogSetting `yaml:"NAS" valid:"optional"` NGAP *LogSetting `yaml:"NGAP" valid:"optional"`