Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PanDAWMS/dkb
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a9da4f24b7adae147e1bae04d6a0d305c89b4dc7
Choose a base ref
..
head repository: PanDAWMS/dkb
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d3761de7f9e7954302e6749f957c0dd18217ab77
Choose a head ref
Showing with 11 additions and 1 deletion.
  1. +7 −1 Utils/Dataflow/pyDKB/common/LoggableObject.py
  2. +4 −0 Utils/Dataflow/pyDKB/common/misc.py
8 changes: 7 additions & 1 deletion Utils/Dataflow/pyDKB/common/LoggableObject.py
Original file line number Diff line number Diff line change
@@ -11,5 +11,11 @@ class LoggableObject(object):

@classmethod
def log(cls, message, level=logLevel.INFO):
""" Output log message with given log level. """
""" Output log message with given log level.
:param message: message to output
:type message: str
:param level: log level of the message
:type level: ``pyDKB.common.types.logLevel`` member
"""
log(message, level, cls.__name__)
4 changes: 4 additions & 0 deletions Utils/Dataflow/pyDKB/common/misc.py
Original file line number Diff line number Diff line change
@@ -13,6 +13,10 @@
def log(message, level=logLevel.INFO, *args):
""" Output log message with given log level.
:param message: message to output
:type message: str
:param level: log level of the message
:type level: ``pyDKB.common.types.logLevel`` member
:param *args: additional prefixes (will be output between log
level prefix and message body)
:type *args: str