figuring out gokrazy
This commit is contained in:
3
main.go
3
main.go
@@ -2,6 +2,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
"fmt"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -100,11 +101,13 @@ func main() {
|
|||||||
Facility: "daemon",
|
Facility: "daemon",
|
||||||
WriteSyslog: false,
|
WriteSyslog: false,
|
||||||
}
|
}
|
||||||
|
fmt.Println(defaultPath("nlink.conf"))
|
||||||
|
|
||||||
if err := log.Setup(logOpts); err != nil {
|
if err := log.Setup(logOpts); err != nil {
|
||||||
die.If(err)
|
die.If(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Infof("minio_bucket: %s", config.Get("minio_bucket"))
|
||||||
if err := restoreDatabase(config.Get("local_database")); err != nil {
|
if err := restoreDatabase(config.Get("local_database")); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user