func main() { log.InitWithConfig(log.Config{Name: "console"}) r, err := registry.GetRegistry() if err != nil { log.Errorf("Error: %s\n", err) return } cmd := command.NewCommand(r) if err := cmd.Run(os.Args); err != nil { log.Errorf("Error: %s\n", err) } }
func (s *EtcdSuite) SetUpSuite(c *C) { log.InitWithConfig(log.Config{Name: "console"}) key, err := secret.NewKeyString() if err != nil { panic(err) } s.key = key nodes_string := os.Getenv("VULCAND_TEST_ETCD_NODES") if nodes_string == "" { // Skips the entire suite c.Skip("This test requires etcd, provide comma separated nodes in VULCAND_TEST_ETCD_NODES environment variable") return } s.nodes = strings.Split(nodes_string, ",") }
func (s *MemSuite) SetUpSuite(c *C) { log.InitWithConfig(log.Config{Name: "console"}) }