agent: Updating for new client API

pull/711/head
Armon Dadgar 10 years ago
parent 08610b03fe
commit ea42b04593

@ -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.

Loading…
Cancel
Save