Gladdy version + enhanced debug messages

This commit is contained in:
Sumsebrum 2022-08-01 18:31:41 +02:00
parent db66226209
commit cf64424080

View File

@ -27,13 +27,13 @@ local LibStub = LibStub
---------------------------
local MAJOR, MINOR = "Gladdy", 7
local MAJOR, MINOR = "Gladdy", 8
local Gladdy = LibStub:NewLibrary(MAJOR, MINOR)
local L
Gladdy.version_major_num = 2
Gladdy.version_minor_num = 0.11
Gladdy.version_minor_num = 0.20
Gladdy.version_num = Gladdy.version_major_num + Gladdy.version_minor_num
Gladdy.version_releaseType = RELEASE_TYPES.release
Gladdy.version_releaseType = RELEASE_TYPES.beta
Gladdy.version = PREFIX .. string.format("%.2f", Gladdy.version_num) .. "-" .. Gladdy.version_releaseType
Gladdy.VERSION_REGEX = VERSION_REGEX
@ -84,11 +84,11 @@ end
function Gladdy:Debug(lvl, ...)
if Gladdy.debug then
if lvl == "INFO" then
Gladdy:Print(...)
Gladdy:Print("[INFO]", ...)
elseif lvl == "WARN" then
Gladdy:Warn(...)
Gladdy:Warn("[WARN]", ...)
elseif lvl == "ERROR" then
Gladdy:Error(...)
Gladdy:Error("[ERROR]", ...)
end
end
end