Skip to content

Commit 5c1af52

Browse files
authored
add call in logging example (#11885)
1 parent a2d23e5 commit 5c1af52

File tree

1 file changed

+1
-0
lines changed
  • sdk/textanalytics/azure-ai-textanalytics

1 file changed

+1
-0
lines changed

sdk/textanalytics/azure-ai-textanalytics/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ credential = DefaultAzureCredential()
390390

391391
# This client will log detailed information about its HTTP sessions, at DEBUG level
392392
text_analytics_client = TextAnalyticsClient(endpoint, credential, logging_enable=True)
393+
result = text_analytics_client.analyze_sentiment(["I did not like the restaurant. The food was too spicy."])
393394
```
394395

395396
Similarly, `logging_enable` can enable detailed logging for a single operation,

0 commit comments

Comments
 (0)