Skip to content

Commit 8bd9e6c

Browse files
committed
Force App Service Diagnostic Logging
1 parent a777263 commit 8bd9e6c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.cruft.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/Azure-Samples/Azure-Python-Standardization-Template-Generator",
3-
"commit": "071985944385a0faa5d5510469b94eac92339d1f",
3+
"commit": "a8bbfb5f41e1b73129167cd91c50671ad604e206",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {

infra/core/host/appservice.bicep

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ param runtimeName string
1717
param runtimeNameAndVersion string = '${runtimeName}|${runtimeVersion}'
1818
param runtimeVersion string
1919

20-
param enableDiagnosticLogging bool = true
21-
2220
// Microsoft.Web/sites Properties
2321
param kind string = 'app,linux'
2422

@@ -61,9 +59,9 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = {
6159
allowedOrigins: union([ 'https://portal.azure.com', 'https://ms.portal.azure.com' ], allowedOrigins)
6260
}
6361
// Diagnostic logging
64-
detailedErrorLoggingEnabled: enableDiagnosticLogging
65-
httpLoggingEnabled: enableDiagnosticLogging
66-
requestTracingEnabled: enableDiagnosticLogging
62+
detailedErrorLoggingEnabled: true
63+
httpLoggingEnabled: true
64+
requestTracingEnabled: true
6765
}
6866
clientAffinityEnabled: clientAffinityEnabled
6967
httpsOnly: true

0 commit comments

Comments
 (0)