mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-12-25 02:01:13 +08:00
Updated dependencies and ran go vet
This commit is contained in:
8
glide.lock
generated
8
glide.lock
generated
@@ -1,5 +1,5 @@
|
||||
hash: 2ff7c989fb0fde1375999fded74ae44e10be513a21416571f026390b679924e4
|
||||
updated: 2017-02-21T14:44:44.812460227-03:00
|
||||
updated: 2017-04-11T10:15:39.09271141-03:00
|
||||
imports:
|
||||
- name: github.com/bradfitz/slice
|
||||
version: d9036e2120b5ddfa53f3ebccd618c4af275f47da
|
||||
@@ -17,8 +17,6 @@ imports:
|
||||
version: bf9dde6d0d2c004a008c27aaee91170c786f6db8
|
||||
- name: github.com/kr/pretty
|
||||
version: cfb55aafdaf3ec08f0db22699ab822c50091b1c4
|
||||
- name: github.com/kr/text
|
||||
version: 7cafcd837844e784b526369c9bce262804aebc60
|
||||
- name: github.com/montanaflynn/stats
|
||||
version: eeaced052adbcfeea372c749c281099ed7fdaa38
|
||||
- name: github.com/pborman/getopt
|
||||
@@ -34,7 +32,7 @@ imports:
|
||||
- name: github.com/satori/go.uuid
|
||||
version: 879c5887cd475cd7864858769793b2ceb0d44feb
|
||||
- name: github.com/shirou/gopsutil
|
||||
version: 70a1b78fe69202d93d6718fc9e3a4d6f81edfd58
|
||||
version: e49a95f3d5f824c3f9875ca49e54e4fef17f82cf
|
||||
subpackages:
|
||||
- cpu
|
||||
- host
|
||||
@@ -45,7 +43,7 @@ imports:
|
||||
- name: github.com/shirou/w32
|
||||
version: bb4de0191aa41b5507caa14b0650cdbddcd9280b
|
||||
- name: github.com/sirupsen/logrus
|
||||
version: c078b1e43f58d563c74cebe63c85789e76ddb627
|
||||
version: ba1b36c82c5e05c4f912a88eab0dcd91a171688f
|
||||
- name: github.com/StackExchange/wmi
|
||||
version: e542ed97d15e640bdc14b5c12162d59e8fc67324
|
||||
- name: go4.org
|
||||
|
||||
@@ -70,7 +70,8 @@ func main() {
|
||||
|
||||
logLevel, err := log.ParseLevel(opts.LogLevel)
|
||||
if err != nil {
|
||||
fmt.Errorf("cannot set log level: %s", err.Error())
|
||||
fmt.Printf("Cannot set log level: %s", err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
log.SetLevel(logLevel)
|
||||
|
||||
@@ -113,7 +114,7 @@ func main() {
|
||||
os.Exit(4)
|
||||
}
|
||||
|
||||
if isProfilerEnabled == false {
|
||||
if !isProfilerEnabled {
|
||||
count, err := systemProfileDocsCount(session, di.Database)
|
||||
if err != nil || count == 0 {
|
||||
log.Error("Profiler is not enabled")
|
||||
|
||||
@@ -72,14 +72,6 @@ func TestParseArgs(t *testing.T) {
|
||||
{
|
||||
args: []string{TOOLNAME, "zapp.brannigan.net:27018/samples", "--help"},
|
||||
want: nil,
|
||||
//want: &options{
|
||||
// Host: "zapp.brannigan.net:27018/samples",
|
||||
// LogLevel: DEFAULT_LOGLEVEL,
|
||||
// OrderBy: strings.Split(DEFAULT_ORDERBY, ","),
|
||||
// SkipCollections: strings.Split(DEFAULT_SKIPCOLLECTIONS, ","),
|
||||
// AuthDB: DEFAULT_AUTHDB,
|
||||
// Help: true,
|
||||
//},
|
||||
},
|
||||
{
|
||||
args: []string{TOOLNAME, "zapp.brannigan.net:27018/samples"},
|
||||
|
||||
Reference in New Issue
Block a user