Skip to content
Permalink
Browse files

Fix the resources logger name

Use the Svc:;loggerpath as the resource logger name prefix, so
it also includes the namespace and kind to differentiate svc from
vol and objects with the same name in different namespaces.

This patch also fixes the resource logs not being reported by
the api.
  • Loading branch information...
cvaroqui committed Aug 13, 2019
1 parent d0a7d57 commit ff14886382f11c1f0033f1483ca9acce6438f800
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/resources.py
@@ -138,9 +138,10 @@ def log_label(self):
"""
Return the resource label used in logs entries.
"""
label = rcEnv.nodename + "."
if hasattr(self, "svc"):
label += self.svc.name + '.'
label = self.svc.loggerpath + '.'
else:
label = rcEnv.nodename + "."

if self.rid is None:
label += self.type

0 comments on commit ff14886

Please sign in to comment.
You can’t perform that action at this time.