Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9912a60d
Commit
9912a60d
authored
Jun 10, 2014
by
antirez
Browse files
Cluster test: added show-redis-logs command in the interactive console.
parent
7079ef03
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/instances.tcl
View file @
9912a60d
...
...
@@ -141,6 +141,14 @@ proc pause_on_error {} {
set cmd
[
lindex $argv 0
]
if
{
$cmd
eq
{
continue
}}
{
break
}
elseif
{
$cmd
eq
{
show-redis-logs
}}
{
set count 10
if
{[
lindex $argv 1
]
ne
{}}
{
set count
[
lindex $argv 1
]}
foreach_redis_id id
{
puts
"=== REDIS
$id
===="
puts
[
exec tail -$count redis_$id/log.txt
]
puts
"---------------------
\n
"
}
}
elseif
{
$cmd
eq
{
show-sentinel-logs
}}
{
set count 10
if
{[
lindex $argv 1
]
ne
{}}
{
set count
[
lindex $argv 1
]}
...
...
@@ -184,6 +192,7 @@ proc pause_on_error {} {
}
elseif
{
$cmd
eq
{
help
}}
{
puts
"ls List Sentinel and Redis instances."
puts
"show-sentinel-logs
\[
N
\]
Show latest N lines of logs."
puts
"show-redis-logs
\[
N
\]
Show latest N lines of logs."
puts
"S <id> cmd ... arg Call command in Sentinel <id>."
puts
"R <id> cmd ... arg Call command in Redis <id>."
puts
"SI <id> <field> Show Sentinel <id> INFO <field>."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment