Details
-
Task
-
Resolution: Done
-
Major
-
2.6.0
-
None
Description
SGW version : 2.6.0-84
Steps to reproduce :
- Have above sg config
- Start the SGW config
Result :
- SG fails to start
- No logs generated when it is invalid config
Expected:
- It should display that config is invalid and it should display a message which key is invalid
SGW config :
{
|
"interface": ":4984", |
"logging": { |
"info": { |
"rotation": { |
"max_age": 30, |
"max_size": 1, |
"localtime": true |
},
|
"enabled": true |
},
|
"console": { |
"rotation": { |
"max_age": 30, |
"max_size": 1, |
"localtime": true |
},
|
"log_level": "debug", |
"log_keys": [ |
"*" |
],
|
"logKeys": [ |
"HTTP", |
"FAKE" |
]
|
},
|
"log_file_path": "/tmp/sg_logs", |
"warn": { |
"rotation": { |
"max_age": 90, |
"max_size": 1, |
"localtime": true |
},
|
"enabled": true |
},
|
"error": { |
"rotation": { |
"max_age": 180, |
"max_size": 1, |
"localtime": true |
},
|
"enabled": true |
},
|
"debug": { |
"rotation": { |
"max_age": 30, |
"max_size": 1, |
"localtime": true |
},
|
"enabled": true |
}
|
},
|
"adminInterface": "0.0.0.0:4985", |
"databases": { |
"db": { |
"username": "data-bucket", |
"num_index_replicas": 0, |
"password": "password", |
"bucket": "data-bucket", |
"server": "http://192.168.33.10:8091" |
}
|
}
|
}
|