mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-29 12:00:00 +00:00
cleanup logging
This commit is contained in:
parent
62957e80ca
commit
e4b8fa8cc7
4 changed files with 5 additions and 9 deletions
|
|
@ -30,7 +30,7 @@ def repo_query(query_str: str, vars: Optional[Dict[str, Any]] = None):
|
|||
result = connection.query(query_str, vars)
|
||||
return result
|
||||
except Exception as e:
|
||||
logger.critical(f"Query: {query_str}, Variables: {vars}")
|
||||
logger.critical(f"Query: {query_str}")
|
||||
logger.exception(e)
|
||||
raise
|
||||
|
||||
|
|
@ -62,7 +62,5 @@ def repo_relate(source: str, relationship: str, target: str):
|
|||
# "target": target,
|
||||
# # "content": {}, # You can add properties to the relation here if needed
|
||||
# }
|
||||
logger.debug(f"Executing RELATE query: {query}")
|
||||
result = repo_query(query)
|
||||
logger.debug(f"RELATE query result: {result}")
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue