Merging master into branch.

This commit is contained in:
Renan DelValle 2018-06-22 11:45:43 -07:00
commit 2f88701c9c
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
4 changed files with 27 additions and 4 deletions

View file

@ -266,6 +266,11 @@ func NewRealisClient(options ...ClientOption) (Realis, error) {
config.logger.Println("Number of options applied to config: ", len(options))
// Set a logger if debug has been set to true but no logger has been set
if config.logger == nil && config.debug {
config.logger = log.New(os.Stdout, "realis: ", log.Ltime|log.Ldate|log.LUTC)
}
//Set default Transport to JSON if needed.
if !config.jsonTransport && !config.binTransport {
config.jsonTransport = true