aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/go-redis/redis/internal/log.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-04-08 17:05:15 +0800
committerLauris BH <lauris@nix.lv>2019-04-08 12:05:15 +0300
commite7d7dcb0901b32bed90061e7bc8ae1d2e3c75654 (patch)
tree1287587835fadda43f03f03ebb8b873091f356c8 /vendor/github.com/go-redis/redis/internal/log.go
parent6e4af4985e60de2f7946be6b0fa5a5d24cdad78a (diff)
downloadgitea-e7d7dcb0901b32bed90061e7bc8ae1d2e3c75654.tar.gz
gitea-e7d7dcb0901b32bed90061e7bc8ae1d2e3c75654.zip
Issue indexer queue redis support (#6218)
* add redis queue * finished indexer redis queue * add redis vendor * fix vet * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: lunny <xiaolunwen@gmail.com> * switch to go mod * Update required changes for new logging func signatures
Diffstat (limited to 'vendor/github.com/go-redis/redis/internal/log.go')
-rw-r--r--vendor/github.com/go-redis/redis/internal/log.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/go-redis/redis/internal/log.go b/vendor/github.com/go-redis/redis/internal/log.go
new file mode 100644
index 0000000000..fd14222eee
--- /dev/null
+++ b/vendor/github.com/go-redis/redis/internal/log.go
@@ -0,0 +1,15 @@
+package internal
+
+import (
+ "fmt"
+ "log"
+)
+
+var Logger *log.Logger
+
+func Logf(s string, args ...interface{}) {
+ if Logger == nil {
+ return
+ }
+ Logger.Output(2, fmt.Sprintf(s, args...))
+}