agent: Updating for new client API

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

View File

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