()
| 92 | } |
| 93 | |
| 94 | func init() { |
| 95 | cfg := config.LoadConfigString(cfgJSON) |
| 96 | |
| 97 | logDir := cfg.GetString(ConfigKeyLogDir) |
| 98 | os.RemoveAll(logDir) |
| 99 | |
| 100 | clusterEnableSnapshot = true |
| 101 | |
| 102 | if _, err := log.InitLog(logDir, "metanode", log.DebugLevel, nil, log.DefaultLogLeftSpaceLimitRatio); err != nil { |
| 103 | fmt.Println("Fatal: failed to start the cubefs daemon - ", err) |
| 104 | return |
| 105 | } |
| 106 | log.LogDebugf("action start") |
| 107 | } |
| 108 | |
| 109 | func initMp(t *testing.T) { |
| 110 | tlog = t |