Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Added more log commands
Browse files Browse the repository at this point in the history
  • Loading branch information
zbalkan committed Feb 2, 2023
1 parent 545f747 commit 8fa3600
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ func (n *FilePlugin) Configure(ctx context.Context, config *protobufs.Config) (*
logger.Info("Configured called")
d := PluginConfig{}
if err := yaml.Unmarshal(config.Config, &d); err != nil {
logger.Error(fmt.Sprintf("Error happened %s", err.Error()))
return nil, err
}
if err := d.SetDefaultLoggerConfig(); err != nil {
logger.Error(fmt.Sprintf("Error happened %s", err.Error()))
return nil, err
}
logger.Debug("Initiated notification file logger.")
logger.Info("Initiated notification file logger.")
notification_log.Info("PLUGIN STARTED.")
n.ConfigByName[d.Name] = d
return &protobufs.Empty{}, nil
Expand Down

0 comments on commit 8fa3600

Please sign in to comment.