mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 06:46:34 +00:00
Increase debug output for minio server
This commit is contained in:
parent
3e422c8776
commit
34e8f63f77
@ -88,7 +88,7 @@ func (env *TravisEnvironment) RunTests() {
|
|||||||
minioCmd, err := runMinio()
|
minioCmd, err := runMinio()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "error running minio server: %v", err)
|
fmt.Fprintf(os.Stderr, "error running minio server: %v", err)
|
||||||
os.Exit(4)
|
os.Exit(8)
|
||||||
}
|
}
|
||||||
|
|
||||||
// run the tests and gather coverage information
|
// run the tests and gather coverage information
|
||||||
@ -97,7 +97,7 @@ func (env *TravisEnvironment) RunTests() {
|
|||||||
err = minioCmd.Process.Kill()
|
err = minioCmd.Process.Kill()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "error stopping minio server: %v", err)
|
fmt.Fprintf(os.Stderr, "error stopping minio server: %v", err)
|
||||||
os.Exit(4)
|
os.Exit(8)
|
||||||
}
|
}
|
||||||
|
|
||||||
runGofmt()
|
runGofmt()
|
||||||
@ -261,17 +261,19 @@ func runMinio() (*exec.Cmd, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
logfile, err := os.Create(filepath.Join(cfgdir, "output"))
|
// logfile, err := os.Create(filepath.Join(cfgdir, "output"))
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
return nil, err
|
// return nil, err
|
||||||
}
|
// }
|
||||||
|
|
||||||
cmd := exec.Command("minio",
|
cmd := exec.Command("minio",
|
||||||
"--config-folder", cfgdir,
|
"--config-folder", cfgdir,
|
||||||
"--address", "127.0.0.1:9000",
|
"--address", "127.0.0.1:9000",
|
||||||
"server", dir)
|
"server", dir)
|
||||||
cmd.Stdout = logfile
|
// cmd.Stdout = logfile
|
||||||
cmd.Stderr = logfile
|
// cmd.Stderr = logfile
|
||||||
|
cmd.Stdout = os.Stdout
|
||||||
|
cmd.Stderr = os.Stderr
|
||||||
err = cmd.Start()
|
err = cmd.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user