Skip to content

Commit ef88e54

Browse files
committed
adjust logging
1 parent a388662 commit ef88e54

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

codewiki/src/be/agent_orchestrator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def create_agent(self, module_name: str, components: Dict[str, Any],
8989
async def process_module(self, module_name: str, components: Dict[str, Node],
9090
core_component_ids: List[str], module_path: List[str], working_dir: str) -> Dict[str, Any]:
9191
"""Process a single module and generate its documentation."""
92-
logger.debug(f"Processing module: {module_name}")
92+
logger.info(f"Processing module: {module_name}")
9393

9494
# Load or create module tree
9595
module_tree_path = os.path.join(working_dir, MODULE_TREE_FILENAME)

codewiki/src/be/documentation_generator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def create_documentation_metadata(self, working_dir: str, components: Dict[str,
6969

7070
metadata_path = os.path.join(working_dir, "metadata.json")
7171
file_manager.save_json(metadata, metadata_path)
72-
# logger.debug(f"Documentation metadata saved to: {metadata_path}")
72+
7373

7474
def get_processing_order(self, module_tree: Dict[str, Any], parent_path: List[str] = []) -> List[tuple[List[str], str]]:
7575
"""Get the processing order using topological sort (leaf modules first)."""
@@ -134,7 +134,7 @@ async def generate_module_documentation(self, components: Dict[str, Any], leaf_n
134134

135135
# Get processing order (leaf modules first)
136136
processing_order = self.get_processing_order(first_module_tree)
137-
# logger.debug(f"Processing {len(processing_order)} modules in dependency order:\n{processing_order}")
137+
138138

139139
# Process modules in dependency order
140140
final_module_tree = module_tree
@@ -179,7 +179,7 @@ async def generate_module_documentation(self, components: Dict[str, Any], leaf_n
179179
[], working_dir
180180
)
181181
else:
182-
logger.debug(f"Processing whole repo because repo can fit in the context window")
182+
logger.info(f"Processing whole repo because repo can fit in the context window")
183183
repo_name = os.path.basename(os.path.normpath(self.config.repo_path))
184184
final_module_tree = await self.agent_orchestrator.process_module(
185185
repo_name, components, leaf_nodes, [], working_dir
@@ -200,7 +200,7 @@ async def generate_parent_module_docs(self, module_path: List[str],
200200
"""Generate documentation for a parent module based on its children's documentation."""
201201
module_name = module_path[-1] if len(module_path) >= 1 else os.path.basename(os.path.normpath(self.config.repo_path))
202202

203-
logger.debug(f"Generating parent documentation for: {module_name}")
203+
logger.info(f"Generating parent documentation for: {module_name}")
204204

205205
# Load module tree
206206
module_tree_path = os.path.join(working_dir, MODULE_TREE_FILENAME)

0 commit comments

Comments
 (0)