mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 15:18:44 +05:00
More logging
This commit is contained in:
@@ -200,9 +200,11 @@ func (fsev FSEvent) GetEndTime() (t time.Time, err error) {
|
||||
|
||||
func (fsev FSEvent) GetDuration(fieldName string) (dur time.Duration, err error) {
|
||||
durStr := utils.FirstNonEmpty(fsev[fieldName], fsev[DURATION])
|
||||
engine.Logger.Debug(fmt.Sprintf("DurationString before staticChecks: <%s>", durStr))
|
||||
if strings.HasPrefix(fieldName, utils.STATIC_VALUE_PREFIX) { // Static value
|
||||
durStr = fieldName[len(utils.STATIC_VALUE_PREFIX):]
|
||||
}
|
||||
engine.Logger.Debug(fmt.Sprintf("DurationString after staticChecks: <%s>", durStr))
|
||||
return utils.ParseDurationWithSecs(durStr)
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ func (osipsev *OsipsEvent) New(evStr string) Event {
|
||||
}
|
||||
|
||||
func (osipsev *OsipsEvent) String() string {
|
||||
return ""
|
||||
return fmt.Sprintf("%+v", osipsev)
|
||||
}
|
||||
|
||||
func (osipsev *OsipsEvent) GetName() string {
|
||||
|
||||
Reference in New Issue
Block a user