Skip to content

Commit a8bbfb5

Browse files
authored
Merge pull request #75 from Azure-Samples/diagnostics2
hard code diagnostic logging
2 parents 0719859 + 934da57 commit a8bbfb5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

{{cookiecutter.__src_folder_name}}/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)