summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/hackers_parse.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 00:34:21 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 00:34:21 -0600
commit6b94a9b6588112328fa2738b1c149b48908f5029 (patch)
tree4e7e11ad85997855af38b219a1b8193e1e4dab88 /src/nshd/hackers_git/hackers_parse.go
parent066fe52728294bf764ccb89750eecae634a4c1a6 (diff)
clean up logging
Diffstat (limited to 'src/nshd/hackers_git/hackers_parse.go')
-rw-r--r--src/nshd/hackers_git/hackers_parse.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nshd/hackers_git/hackers_parse.go b/src/nshd/hackers_git/hackers_parse.go
index 14140da..f1f360f 100644
--- a/src/nshd/hackers_git/hackers_parse.go
+++ b/src/nshd/hackers_git/hackers_parse.go
@@ -111,12 +111,12 @@ func load_user_password(filename string) (hash string) {
hash = "!"
file, err := os.Open(filename)
if err != nil {
- logger.Info("Could not open: %q: %v", filename, err)
+ logger.Debug("hackers.git: %v", err)
return
}
contents, err := ioutil.ReadAll(file)
if err != nil {
- logger.Info("Error while reading: %q: %v", filename, err)
+ logger.Debug("hackers.git: Error while reading: %q: %v", filename, err)
return
}
lines := strings.Split(string(contents), "\n")
@@ -127,10 +127,10 @@ func load_user_password(filename string) (hash string) {
if lines[1] == "" {
hash = lines[0]
} else {
- logger.Info("Invalid password format in file: %q", filename)
+ logger.Debug("hackers.git: Invalid password format in file: %q", filename)
}
default:
- logger.Info("Invalid password format in file: %q", filename)
+ logger.Debug("hackers.git: Invalid password format in file: %q", filename)
}
return
}