mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 18:53:43 -04:00
Move to logging package (#191)
* Updating comment to remove references to Caddy * Updating README to mark TODO items complete * Changing all debug print statements over to use logging package
This commit is contained in:
committed by
Miek Gieben
parent
3f4ec783d2
commit
3ba86f2421
@@ -1,4 +1,4 @@
|
||||
// Package caddy implements the CoreDNS web server as a service
|
||||
// Package core implements the CoreDNS web server as a service
|
||||
// in your own Go programs.
|
||||
//
|
||||
// To use this package, follow a few simple steps:
|
||||
@@ -7,10 +7,10 @@
|
||||
// 2. Call LoadCorefile() to get the Corefile (it
|
||||
// might have been piped in as part of a restart).
|
||||
// You should pass in your own Corefile loader.
|
||||
// 3. Call caddy.Start() to start CoreDNS, caddy.Stop()
|
||||
// to stop it, or caddy.Restart() to restart it.
|
||||
// 3. Call core.Start() to start CoreDNS, core.Stop()
|
||||
// to stop it, or core.Restart() to restart it.
|
||||
//
|
||||
// You should use caddy.Wait() to wait for all CoreDNS servers
|
||||
// You should use core.Wait() to wait for all CoreDNS servers
|
||||
// to quit before your process exits.
|
||||
package core
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package setup
|
||||
import (
|
||||
//"crypto/tls"
|
||||
//"crypto/x509"
|
||||
"fmt"
|
||||
"log"
|
||||
//"io/ioutil"
|
||||
//"net"
|
||||
//"net/http"
|
||||
@@ -27,7 +27,7 @@ const (
|
||||
|
||||
// Kubernetes sets up the kubernetes middleware.
|
||||
func Kubernetes(c *Controller) (middleware.Middleware, error) {
|
||||
fmt.Println("controller %v", c)
|
||||
log.Printf("[debug] controller %v\n", c)
|
||||
// TODO: Determine if subzone support required
|
||||
|
||||
kubernetes, err := kubernetesParse(c)
|
||||
@@ -115,6 +115,5 @@ func kubernetesParse(c *Controller) (kubernetes.Kubernetes, error) {
|
||||
return k8s, nil
|
||||
}
|
||||
}
|
||||
fmt.Println("here before return")
|
||||
return kubernetes.Kubernetes{}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user