Add config validation logs on application start
This commit is contained in:
1 parent
4daf261d95
commit
286e8f8590
2 files changed
+44
-7
No files matched your search
+1
-1
@@ -50,7 +50,7 @@ type Service struct {
|
||||
NumberOfSuccessesInARow int
|
||||
}
|
||||
|
||||
func (service *Service) Validate() {
|
||||
func (service *Service) ValidateAndSetDefaults() {
|
||||
// Set default values
|
||||
if service.Interval == 0 {
|
||||
service.Interval = 1 * time.Minute
|
||||
|
||||
Reference in new issue
Block a user