az/log: new debug flag azDebugFlag for az logging

This commit is contained in:
Minglei Jin 2024-10-18 09:57:12 +08:00
parent eeab3a8a8b
commit 4cc65adc1f
3 changed files with 16 additions and 28 deletions

View File

@ -6,9 +6,6 @@ add_executable (
main.cpp 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(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 $ENV{HOME}/.cos-local.2/lib NO_DEFAULT_PATH)
#find_library(XML2_LIBRARY xml2) #find_library(XML2_LIBRARY xml2)

View File

@ -1,6 +1,3 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/** /**
* @file * @file
* @brief Application that consumes the Azure SDK for C++. * @brief Application that consumes the Azure SDK for C++.
@ -16,17 +13,15 @@
using namespace Azure::Storage::Blobs; using namespace Azure::Storage::Blobs;
int main(int argc, char* argv[]) int main(int argc, char* argv[]) {
{
(void)argc; (void)argc;
(void)argv; (void)argv;
/**************** Container SDK client ************************/ /**************** Container SDK client ************************/
/**************** Create container ************************/ /**************** Create container ************************/
try try {
{ auto containerClient =
auto containerClient = BlobContainerClient::CreateFromConnectionString( BlobContainerClient::CreateFromConnectionString(std::getenv("STORAGE_CONNECTION_STRING"), "td-test");
std::getenv("STORAGE_CONNECTION_STRING"), "td-test");
// containerClient.CreateIfNotExists(); // containerClient.CreateIfNotExists();
/**************** Container SDK client ************************/ /**************** Container SDK client ************************/
@ -35,17 +30,13 @@ int main(int argc, char* argv[])
// auto response = containerClient.ListBlobs(); // auto response = containerClient.ListBlobs();
// auto blobListPage = response.Value; // auto blobListPage = response.Value;
// auto blobListPage = response.Blobs; // auto blobListPage = response.Blobs;
for (auto page = containerClient.ListBlobs(/*options*/); page.HasPage(); page.MoveToNextPage()) for (auto page = containerClient.ListBlobs(/*options*/); page.HasPage(); page.MoveToNextPage()) {
{ for (auto& blob : page.Blobs) {
for (auto& blob : page.Blobs)
{
std::cout << blob.Name << std::endl; std::cout << blob.Name << std::endl;
} }
} }
} } catch (const std::exception& ex) {
catch (const std::exception& ex)
{
std::cout << ex.what(); std::cout << ex.what();
return 1; return 1;
} }

View File

@ -57,7 +57,7 @@ class TDTestCase:
tdSql.checkData(0, 2, 0) tdSql.checkData(0, 2, 0)
tdSql.query("show dnode 1 variables like '%debugFlag'") tdSql.query("show dnode 1 variables like '%debugFlag'")
tdSql.checkRows(23) tdSql.checkRows(24)
tdSql.query("show dnode 1 variables like '____debugFlag'") tdSql.query("show dnode 1 variables like '____debugFlag'")
tdSql.checkRows(2) tdSql.checkRows(2)