mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-14 18:02:37 +02:00
Implement logging strategy (#444)
* Logging strategy and convert all prints() to logging invocations
This commit is contained in:
parent
3e0651222b
commit
dd70aade11
117 changed files with 1216 additions and 667 deletions
|
|
@ -1,9 +1,14 @@
|
|||
|
||||
import logging
|
||||
|
||||
from trustgraph.schema import ConfigResponse
|
||||
from trustgraph.schema import ConfigValue, Error
|
||||
|
||||
from ... tables.config import ConfigTableStore
|
||||
|
||||
# Module logger
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
class ConfigurationClass:
|
||||
|
||||
async def keys(self):
|
||||
|
|
@ -228,7 +233,7 @@ class Configuration:
|
|||
|
||||
async def handle(self, msg):
|
||||
|
||||
print("Handle message ", msg.operation)
|
||||
logger.debug(f"Handling config message: {msg.operation}")
|
||||
|
||||
if msg.operation == "get":
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue