Skip to content

Commit

Permalink
Add clean logging to code graph example
Browse files Browse the repository at this point in the history
  • Loading branch information
alekszievr committed Jan 8, 2025
1 parent 0dec704 commit 8ffef50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/python/code_graph_example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import argparse
import asyncio
import logging

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):
Expand Down Expand Up @@ -43,6 +45,8 @@ def parse_args():
return parser.parse_args()

if __name__ == "__main__":
setup_logging(logging.ERROR)

import os

args = parse_args()
Expand Down

0 comments on commit 8ffef50

Please sign in to comment.