lib/lorj.rb in lorj-1.0.17 vs lib/lorj.rb in lorj-1.0.18
- old
+ new
@@ -69,9 +69,11 @@
# - nothing
#
# * *Raises* :
# No exceptions
def self::debug(iLevel, sMsg, *p)
+ PrcLib.core_level = 0 if PrcLib.core_level.nil?
+
if iLevel <= PrcLib.core_level
message = format('-%s- %s', iLevel, sMsg)
PrcLib.debug(message, *p)
end