Fix bug in :debug command
This commit is contained in:
parent
1f89509df9
commit
6902301674
|
@ -788,13 +788,13 @@ const CommandDesc debug_cmd = {
|
||||||
write_debug("pid: " + to_string(getpid()));
|
write_debug("pid: " + to_string(getpid()));
|
||||||
write_debug("session: " + Server::instance().session());
|
write_debug("session: " + Server::instance().session());
|
||||||
}
|
}
|
||||||
if (parser[0] == "buffers")
|
else if (parser[0] == "buffers")
|
||||||
{
|
{
|
||||||
write_debug("Buffers:");
|
write_debug("Buffers:");
|
||||||
for (auto& buffer : BufferManager::instance())
|
for (auto& buffer : BufferManager::instance())
|
||||||
write_debug(buffer->debug_description());
|
write_debug(buffer->debug_description());
|
||||||
}
|
}
|
||||||
if (parser[0] == "options")
|
else if (parser[0] == "options")
|
||||||
{
|
{
|
||||||
write_debug("Options:");
|
write_debug("Options:");
|
||||||
for (auto& option : context.options().flatten_options())
|
for (auto& option : context.options().flatten_options())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user