🎨 logging

This commit is contained in:
Liang Ding 2023-03-10 16:45:30 +08:00
parent 0268a94243
commit 8f50d465f4
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -217,7 +217,7 @@ func InitConf() {
} else {
if 0 < semver.Compare("v"+util.Ver, "v"+Conf.System.KernelVersion) {
logging.LogInfof("upgraded from version [%s] to [%s]", Conf.System.KernelVersion, util.Ver)
} else {
} else if 0 > semver.Compare("v"+util.Ver, "v"+Conf.System.KernelVersion) {
logging.LogInfof("downgraded from version [%s] to [%s]", Conf.System.KernelVersion, util.Ver)
}