Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use klog instead of log #1626

Merged
merged 1 commit into from
Feb 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"fmt"
"io"
"io/ioutil"
"log"
"math/rand"
"net/url"
"os"
Expand All @@ -42,6 +41,8 @@ import (
"strconv"
"strings"
"time"

"k8s.io/klog"
)

// GetURL gets the full URL for a http request.
Expand Down Expand Up @@ -562,13 +563,13 @@ func dirWindows() (string, error) {
// Debug generates debug info for debug mode.
func Debug(title, message string) {
if title != "" {
log.Println("----------------------------DEBUG: start of " + title + "----------------------------")
klog.V(5).Infof("----------------------------DEBUG: start of %s ----------------------------", title)
}

log.Println(message)
klog.V(5).Infof(message)

if title != "" {
log.Println("----------------------------DEBUG: end of " + title + "------------------------------\n")
klog.V(5).Infof("----------------------------DEBUG: end of %s------------------------------", title)
}
}

Expand Down