🎨 Logging

This commit is contained in:
Daniel 2024-04-15 09:09:45 +08:00
parent 9e1fc704c9
commit bdff61d915
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -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
}