mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Commenting out whois+sed, will be re-added later
This commit is contained in:

committed by
Sveta Smirnova

parent
2091c1a1f0
commit
78aebd272d
@@ -36,9 +36,9 @@ var CLI struct {
|
||||
ExcludeRegexes []string `help:"Remove regexes from analysis. List regexes using 'pt-galera-log-explainer regex-list'"`
|
||||
MergeByDirectory bool `help:"Instead of relying on identification, merge contexts and columns by base directory. Very useful when dealing with many small logs organized per directories."`
|
||||
|
||||
List list `cmd:""`
|
||||
Whois whois `cmd:""`
|
||||
Sed sed `cmd:""`
|
||||
List list `cmd:""`
|
||||
//Whois whois `cmd:""`
|
||||
// Sed sed `cmd:""`
|
||||
Ctx ctx `cmd:""`
|
||||
RegexList regexList `cmd:""`
|
||||
Conflicts conflicts `cmd:""`
|
||||
|
@@ -1,16 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
|
||||
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/regex"
|
||||
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/types"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
/*
|
||||
type sed struct {
|
||||
Paths []string `arg:"" name:"paths" help:"paths of the log to use"`
|
||||
ByIP bool `help:"Replace by IP instead of name"`
|
||||
@@ -109,3 +99,4 @@ func sedSliceWith(elems []string, replace string) []string {
|
||||
}
|
||||
return args
|
||||
}
|
||||
*/
|
||||
|
@@ -1,14 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/regex"
|
||||
"github.com/percona/percona-toolkit/src/go/pt-galera-log-explainer/types"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
/*
|
||||
type whois struct {
|
||||
Search string `arg:"" name:"search" help:"the identifier (node name, ip, uuid, hash) to search"`
|
||||
Paths []string `arg:"" name:"paths" help:"paths of the log to use"`
|
||||
@@ -16,7 +8,7 @@ type whois struct {
|
||||
|
||||
func (w *whois) Help() string {
|
||||
return `Take any type of info pasted from error logs and find out about it.
|
||||
It will list known node name(s), IP(s), hostname(s), and other known node's UUIDs.
|
||||
It will list known node name(s), IP(s), hostname(s), and other known node's UUIDs.
|
||||
`
|
||||
}
|
||||
|
||||
@@ -40,7 +32,6 @@ func (w *whois) Run() error {
|
||||
}
|
||||
|
||||
func whoIs(ctxs map[string]types.LogCtx, search string) types.NodeInfo {
|
||||
/*
|
||||
ni := types.NodeInfo{Input: search}
|
||||
if regex.IsNodeUUID(search) {
|
||||
search = utils.UUIDToShortUUID(search)
|
||||
@@ -98,6 +89,6 @@ func whoIs(ctxs map[string]types.LogCtx, search string) types.NodeInfo {
|
||||
ni.NodeUUIDs = hashes
|
||||
ni.IPs = ips
|
||||
return ni
|
||||
*/
|
||||
return types.NodeInfo{}
|
||||
}
|
||||
*/
|
||||
|
Reference in New Issue
Block a user