agent: Updating for new client API

This commit is contained in:
Armon Dadgar 2015-02-06 18:53:02 -08:00
parent bdfc691102
commit 1738a6b171
1 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io"
"log"
"net"
"os"
"strconv"
@ -58,7 +57,7 @@ func ProviderConfig(c *Config) *client.ProviderConfig {
func NewProvider(c *Config, logOutput io.Writer) (*client.Provider, net.Listener, error) {
// Get the configuration of the provider
config := ProviderConfig(c)
config.Logger = log.New(logOutput, "", log.LstdFlags)
config.LogOutput = logOutput
// SCADA_INSECURE env variable is used for testing to disable
// TLS certificate verification.