Skip to content

Commit cf3f076

Browse files
Merge pull request #683 from microsoft/logging-fix
fix: logging issue fix
2 parents 7ff85b1 + d4ca30e commit cf3f076

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

infra/main.bicep

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,8 +1339,19 @@ module containerApp 'br/public:avm/res/app/container-app:0.18.1' = {
13391339
name: 'AZURE_AI_MODEL_DEPLOYMENT_NAME'
13401340
value: aiFoundryAiServicesModelDeployment.name
13411341
}
1342+
{
1343+
name: 'AZURE_BASIC_LOGGING_LEVEL'
1344+
value: 'INFO'
1345+
}
1346+
{
1347+
name: 'AZURE_PACKAGE_LOGGING_LEVEL'
1348+
value: 'WARNING'
1349+
}
1350+
{
1351+
name: 'AZURE_LOGGING_PACKAGES'
1352+
value: ''
1353+
}
13421354
]
1343-
13441355
}
13451356
]
13461357
secrets: [
@@ -1500,9 +1511,6 @@ module webSite 'modules/web-sites.bicep' = {
15001511
WEBSITES_CONTAINER_START_TIME_LIMIT: '1800' // 30 minutes, adjust as needed
15011512
BACKEND_API_URL: 'https://${containerApp.outputs.fqdn}'
15021513
AUTH_ENABLED: 'false'
1503-
AZURE_BASIC_LOGGING_LEVEL: 'INFO'
1504-
AZURE_PACKAGE_LOGGING_LEVEL: 'WARNING'
1505-
AZURE_LOGGING_PACKAGES: ''
15061514
}
15071515
// WAF aligned configuration for Monitoring
15081516
applicationInsightResourceId: enableMonitoring ? applicationInsights!.outputs.resourceId : null

infra/main_custom.bicep

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,6 +1686,18 @@ module containerApp 'br/public:avm/res/app/container-app:0.18.1' = {
16861686
name: 'AZURE_AI_MODEL_DEPLOYMENT_NAME'
16871687
value: aiFoundryAiServicesModelDeployment.name
16881688
}
1689+
{
1690+
name: 'AZURE_BASIC_LOGGING_LEVEL'
1691+
value: 'INFO'
1692+
}
1693+
{
1694+
name: 'AZURE_PACKAGE_LOGGING_LEVEL'
1695+
value: 'WARNING'
1696+
}
1697+
{
1698+
name: 'AZURE_LOGGING_PACKAGES'
1699+
value: ''
1700+
}
16891701
]
16901702
}
16911703
]
@@ -1855,9 +1867,6 @@ module webSite 'modules/web-sites.bicep' = {
18551867
//WEBSITES_CONTAINER_START_TIME_LIMIT: '1800' // 30 minutes, adjust as needed
18561868
BACKEND_API_URL: 'https://${containerApp.outputs.fqdn}'
18571869
AUTH_ENABLED: 'false'
1858-
AZURE_BASIC_LOGGING_LEVEL: 'INFO'
1859-
AZURE_PACKAGE_LOGGING_LEVEL: 'WARNING'
1860-
AZURE_LOGGING_PACKAGES: ''
18611870
ENABLE_ORYX_BUILD: 'True'
18621871
}
18631872
// WAF aligned configuration for Monitoring

src/backend/common/utils/utils_kernel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from v3.config.agent_registry import agent_registry
1111

12-
logging.basicConfig(level=logging.INFO)
1312

1413
# Cache for agent instances by session
1514
agent_instances: Dict[str, Dict[str, Any]] = {}

0 commit comments

Comments
 (0)