Gladdy version + enhanced debug messages
This commit is contained in:
parent
db66226209
commit
cf64424080
12
Gladdy.lua
12
Gladdy.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user