Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Log proxied Modules like Class objects, don't log config specs at err…

…ror.
  • Loading branch information...
commit 58852b17bfab0b07dcaebc97e7ed1f3d8d0cffa3 1 parent 8d49bba
@ged authored
View
8 .tm_properties
@@ -0,0 +1,8 @@
+# Settings
+projectDirectory = "$CWD"
+windowTitle = "${CWD/^.*\///} «$TM_DISPLAYNAME»"
+excludeInFileChooser = "{$exclude,.hg,pkg}"
+
+[ source.ruby ]
+disableIndentCorrections = true
+
View
2  lib/loggability.rb
@@ -322,7 +322,7 @@ def self::configure( config=nil )
def self::parse_config_spec( spec )
match = LOGSPEC_PATTERN.match( spec ) or
raise ArgumentError, "Couldn't parse logspec: %p" % [ spec ]
- self.log.error " parsed config spec %p -> %p" % [ spec, match ]
+ self.log.debug " parsed config spec %p -> %p" % [ spec, match ]
severity, target, format = match.captures
target = case target
View
2  lib/loggability/logger.rb
@@ -114,7 +114,7 @@ def inspect
### Make a progname for the specified object.
def make_progname( object )
case object
- when Class
+ when Class, Module
object.inspect
else
"%p:%#x" % [ object.class, object.object_id * 2 ]
Please sign in to comment.
Something went wrong with that request. Please try again.