|
20 | 20 | import azure_resources as az |
21 | 21 | from apimtypes import APIM_SKU, HTTP_VERB, INFRASTRUCTURE, Endpoints, Output, get_project_root |
22 | 22 | from console import print_error, print_info, print_message, print_ok, print_plain, print_warning, print_val |
23 | | -from logging_config import get_configured_level_name |
| 23 | +import logging_config |
24 | 24 |
|
25 | 25 | # Configure warning filter to suppress IPython exit warnings |
26 | 26 | warnings.filterwarnings( |
@@ -48,7 +48,7 @@ def get_deployment_failure_message(deployment_name: str) -> str: |
48 | 48 | base_message = f"Deployment '{deployment_name}' failed. View deployment details in Azure Portal." |
49 | 49 |
|
50 | 50 | # Only suggest enabling DEBUG logging if it's not already enabled |
51 | | - current_level = get_configured_level_name() |
| 51 | + current_level = logging_config.get_configured_level_name() |
52 | 52 | if current_level != 'DEBUG': |
53 | 53 | return f"{base_message} Enable DEBUG logging in workspace root .env file, then rerun to see details." |
54 | 54 |
|
@@ -644,9 +644,8 @@ def find_project_root() -> str: |
644 | 644 |
|
645 | 645 | while current_dir != os.path.dirname(current_dir): # Stop at filesystem root |
646 | 646 | if any(os.path.exists(os.path.join(current_dir, marker)) for marker in marker_files): |
647 | | - # Additional check: verify this looks like our project by checking for samples directory |
648 | | - if os.path.exists(os.path.join(current_dir, 'samples')): |
649 | | - return current_dir |
| 647 | + # Return as soon as marker files are found; do not require 'samples' directory |
| 648 | + return current_dir |
650 | 649 | current_dir = os.path.dirname(current_dir) |
651 | 650 |
|
652 | 651 | # If we can't find the project root, raise an error |
|
0 commit comments