瀏覽代碼

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 1 年之前
父節點
當前提交
8963c4d817
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      kernel/model/mount.go

+ 4 - 0
kernel/model/mount.go

@@ -62,6 +62,7 @@ func CreateBox(name string) (id string, err error) {
 	boxConf.Name = name
 	box.SaveConf(boxConf)
 	IncSync()
+	logging.LogInfof("created box [%s]", id)
 	return
 }
 
@@ -86,6 +87,7 @@ func RenameBox(boxID, name string) (err error) {
 	box.Name = name
 	box.SaveConf(boxConf)
 	IncSync()
+	logging.LogInfof("renamed box [%s] to [%s]", boxID, name)
 	return
 }
 
@@ -139,6 +141,8 @@ func RemoveBox(boxID string) (err error) {
 		return
 	}
 	IncSync()
+
+	logging.LogInfof("removed box [%s]", boxID)
 	return
 }