Add clean logging to code graph example
This commit is contained in:
parent
0dec704445
commit
8ffef5034a
1 changed files with 4 additions and 0 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
import argparse
|
import argparse
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import logging
|
||||||
|
|
||||||
from cognee.api.v1.cognify.code_graph_pipeline import run_code_graph_pipeline
|
from cognee.api.v1.cognify.code_graph_pipeline import run_code_graph_pipeline
|
||||||
|
from cognee.shared.utils import setup_logging
|
||||||
|
|
||||||
|
|
||||||
async def main(repo_path, include_docs):
|
async def main(repo_path, include_docs):
|
||||||
|
|
@ -43,6 +45,8 @@ def parse_args():
|
||||||
return parser.parse_args()
|
return parser.parse_args()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
setup_logging(logging.ERROR)
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue