Skip to content

Commit 09f29dc

Browse files
committed
client: Use logger rather than console prints
Currently the REST implementation uses print() for logging rather than the module's logger, logging every submission. Convert this to a debug log via the standard python logging framework. Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f077b0c commit 09f29dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kcidb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def rest_submit(self, data):
130130
Uses the environment variable KCIDB_REST to get the REST URI
131131
and credentials.
132132
"""
133-
print("Submitting report over REST API")
133+
LOGGER.debug("Submitting report over REST API")
134134
vre = self.REST_REGEX
135135
match = vre.match(self._resturi)
136136
if match:

0 commit comments

Comments
 (0)