diff options
author | André Erdmann <dywi@mailerd.de> | 2013-08-27 17:33:15 +0200 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2013-08-27 17:33:15 +0200 |
commit | 27b6e6ef78b781e9b645738bea3db5b0d42b28dc (patch) | |
tree | c251f99d42eb1512acee2d81c6d84a49c2a1da55 /roverlay/depres | |
parent | depres unresolvable listener: log deptype (diff) | |
download | R_overlay-27b6e6ef78b781e9b645738bea3db5b0d42b28dc.tar.gz R_overlay-27b6e6ef78b781e9b645738bea3db5b0d42b28dc.tar.bz2 R_overlay-27b6e6ef78b781e9b645738bea3db5b0d42b28dc.zip |
depresolver: log deptype
Diffstat (limited to 'roverlay/depres')
-rw-r--r-- | roverlay/depres/depresolver.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/roverlay/depres/depresolver.py b/roverlay/depres/depresolver.py index 3d96d86..eeed396 100644 --- a/roverlay/depres/depresolver.py +++ b/roverlay/depres/depresolver.py @@ -182,17 +182,21 @@ class DependencyResolver ( object ): returns: None (implicit) """ + # COULDFIX: needs some cleanup + # for example, it's already known whether event==(UN)RESOLVED event_type = events.DEPRES_EVENTS [event] if self.logmask & event_type: # log this event if event_type == events.DEPRES_EVENTS ['RESOLVED']: self.logger_resolved.info ( - "{!r} as {!r}".format ( + "0x{:x}, {!r} as {!r}".format ( + dep_env.deptype_mask, dep_env.dep_str, dep_env.resolved_by.dep ) ) elif event_type == events.DEPRES_EVENTS ['UNRESOLVABLE']: - self.logger_unresolvable.info ( "{!r}".format ( dep_env.dep_str ) ) + self.logger_unresolvable.info ( + "0x{:x}, {!r}".format ( dep_env.deptype_mask, dep_env.dep_str ) ) else: # "generic" event, expects that kw msg is set self.logger.debug ( "event {}: {}".format ( event, msg ) ) |