From b5d372765df729754783f40f2b757c8393a7b87d Mon Sep 17 00:00:00 2001 From: "Sascha L. Teichmann" Date: Thu, 7 Aug 2014 20:25:48 +0200 Subject: [PATCH] Fixed a few typos in warnigs of Redis parser. --- parser.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/parser.go b/parser.go index 13b4406..76ef322 100644 --- a/parser.go +++ b/parser.go @@ -159,20 +159,20 @@ func asString(i interface{}) string { func (rce *RedisCommandExecutor) execute() bool { l := len(rce.args) if l < 1 { - log.Printf("WARN: Too less argument for command") + log.Printf("WARN: Too less argument for command.") return false } cmd := asString(rce.args[0]) switch cmd { case "HGET": if l < 3 { - log.Println("WARN: Missing argments for HGET") + log.Println("WARN: Missing argments for HGET.") return false } hash, ok1 := rce.args[1].([]byte) key, ok2 := rce.args[2].([]byte) if !ok1 || !ok2 { - log.Println("WARN HGET data are not byte slices.") + log.Println("WARN: HGET data are not byte slices.") return false } return rce.commands.Hget(hash, key) @@ -187,7 +187,7 @@ func (rce *RedisCommandExecutor) execute() bool { value, ok3 := rce.args[3].([]byte) if !ok1 || !ok2 || !ok3 { - log.Printf("WARM HSET data are not byte slices,") + log.Println("WARN: HSET data are not byte slices.") return false } return rce.commands.Hset(hash, key, value) @@ -198,7 +198,7 @@ func (rce *RedisCommandExecutor) execute() bool { case "EXEC": return rce.commands.Exec() } - log.Printf("WARN unkown command: '%s'", cmd) + log.Printf("WARN: unknown command: '%s'\n", cmd) return false }