az/log: new debug flag azDebugFlag for az logging
This commit is contained in:
parent
eeab3a8a8b
commit
4cc65adc1f
|
@ -6,9 +6,6 @@ add_executable (
|
|||
main.cpp
|
||||
)
|
||||
|
||||
# Link to Azure SDK
|
||||
#target_link_libraries(application _azure_sdk)
|
||||
|
||||
find_library(CURL_LIBRARY curl $ENV{HOME}/.cos-local.2/lib NO_DEFAULT_PATH)
|
||||
find_library(XML2_LIBRARY xml2 $ENV{HOME}/.cos-local.2/lib NO_DEFAULT_PATH)
|
||||
#find_library(XML2_LIBRARY xml2)
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Application that consumes the Azure SDK for C++.
|
||||
|
@ -16,36 +13,30 @@
|
|||
|
||||
using namespace Azure::Storage::Blobs;
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int main(int argc, char* argv[]) {
|
||||
(void)argc;
|
||||
(void)argv;
|
||||
|
||||
/**************** Container SDK client ************************/
|
||||
/**************** Create container ************************/
|
||||
try
|
||||
{
|
||||
auto containerClient = BlobContainerClient::CreateFromConnectionString(
|
||||
std::getenv("STORAGE_CONNECTION_STRING"), "td-test");
|
||||
//containerClient.CreateIfNotExists();
|
||||
try {
|
||||
auto containerClient =
|
||||
BlobContainerClient::CreateFromConnectionString(std::getenv("STORAGE_CONNECTION_STRING"), "td-test");
|
||||
// containerClient.CreateIfNotExists();
|
||||
|
||||
/**************** Container SDK client ************************/
|
||||
/**************** list blobs (one page) ******************/
|
||||
//auto response = containerClient.ListBlobsSinglePage();
|
||||
//auto response = containerClient.ListBlobs();
|
||||
//auto blobListPage = response.Value;
|
||||
//auto blobListPage = response.Blobs;
|
||||
for (auto page = containerClient.ListBlobs(/*options*/); page.HasPage(); page.MoveToNextPage())
|
||||
{
|
||||
for (auto& blob : page.Blobs)
|
||||
{
|
||||
// auto response = containerClient.ListBlobsSinglePage();
|
||||
// auto response = containerClient.ListBlobs();
|
||||
// auto blobListPage = response.Value;
|
||||
// auto blobListPage = response.Blobs;
|
||||
for (auto page = containerClient.ListBlobs(/*options*/); page.HasPage(); page.MoveToNextPage()) {
|
||||
for (auto& blob : page.Blobs) {
|
||||
std::cout << blob.Name << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
} catch (const std::exception& ex) {
|
||||
std::cout << ex.what();
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ class TDTestCase:
|
|||
tdSql.checkData(0, 2, 0)
|
||||
|
||||
tdSql.query("show dnode 1 variables like '%debugFlag'")
|
||||
tdSql.checkRows(23)
|
||||
tdSql.checkRows(24)
|
||||
|
||||
tdSql.query("show dnode 1 variables like '____debugFlag'")
|
||||
tdSql.checkRows(2)
|
||||
|
|
Loading…
Reference in New Issue