diff --git a/tools/importer-msgraph-metadata/internal/pipeline/task_parse_resources.go b/tools/importer-msgraph-metadata/internal/pipeline/task_parse_resources.go index 861708738e2..cf80ecef62c 100644 --- a/tools/importer-msgraph-metadata/internal/pipeline/task_parse_resources.go +++ b/tools/importer-msgraph-metadata/internal/pipeline/task_parse_resources.go @@ -37,7 +37,7 @@ func (p pipelineForService) parseResources(resourceIds parser.ResourceIds, model // Determine whether to skip a path containing unsupported segment types for idx, segment := range parsedPath.Segments { if segment.Type == parser.SegmentCast || segment.Type == parser.SegmentFunction { - p.logger.Info(fmt.Sprintf("skipping path containing %s at position %d for %q: %v", segment.Type, idx, p.service, path)) + p.logger.Debug(fmt.Sprintf("Skipping path containing %s at position %d for %q: %v", segment.Type, idx, p.service, path)) skip = true break } @@ -52,7 +52,7 @@ func (p pipelineForService) parseResources(resourceIds parser.ResourceIds, model resourceName = *r } if resourceName == "" { - p.logger.Warn(fmt.Sprintf("path with unknown name was encountered for %q: %v", p.service, path)) + p.logger.Warn(fmt.Sprintf("Path with unknown name was encountered for %q: %v", p.service, path)) continue } @@ -66,7 +66,7 @@ func (p pipelineForService) parseResources(resourceIds parser.ResourceIds, model if _, ok := resources[resourceName]; !ok { // Create a new resource if not already encountered - p.logger.Info(fmt.Sprintf("found new resource %q (category %q, service %q, version %q)", resourceName, resourceCategory, p.service, p.apiVersion)) + p.logger.Info(fmt.Sprintf("Found new resource %q (category %q, service %q, version %q)", resourceName, resourceCategory, p.service, p.apiVersion)) resources[resourceName] = &parser.Resource{ Name: resourceName, @@ -110,7 +110,7 @@ func (p pipelineForService) parseResources(resourceIds parser.ResourceIds, model if uriSuffix != nil { if uriSuffixParsed := parser.NewResourceId(*uriSuffix, operationTags); uriSuffixParsed.HasUserValue() { - p.logger.Info(fmt.Sprintf("skipping URI suffix containing user value in resource %q (category %q, service %q, version %q): %q", resourceName, resourceCategory, p.service, p.apiVersion, *uriSuffix)) + p.logger.Info(fmt.Sprintf("Skipping URI suffix containing user value in resource %q (category %q, service %q, version %q): %q", resourceName, resourceCategory, p.service, p.apiVersion, *uriSuffix)) continue } } @@ -196,7 +196,7 @@ func (p pipelineForService) parseResources(resourceIds parser.ResourceIds, model // Skip unknown operations if operationType == parser.OperationTypeUnknown { - p.logger.Info(fmt.Sprintf("skipping unknown operation type for %q: %v", p.service, path)) + p.logger.Warn(fmt.Sprintf("Skipping unknown operation type for %q: %v", p.service, path)) continue } diff --git a/tools/importer-msgraph-metadata/internal/pipeline/task_persist_common_types.go b/tools/importer-msgraph-metadata/internal/pipeline/task_persist_common_types.go index 940e1480d82..74f213a7d1b 100644 --- a/tools/importer-msgraph-metadata/internal/pipeline/task_persist_common_types.go +++ b/tools/importer-msgraph-metadata/internal/pipeline/task_persist_common_types.go @@ -8,7 +8,7 @@ import ( ) func (p pipeline) PersistCommonTypesDefinitions() error { - p.logger.Info("persisting Common Types Definitions..") + p.logger.Info("Persisting Common Types Definitions..") commonTypes := map[string]sdkModels.CommonTypes{ p.apiVersion: p.commonTypesForVersion, diff --git a/tools/importer-msgraph-metadata/internal/pipeline/task_persist_service.go b/tools/importer-msgraph-metadata/internal/pipeline/task_persist_service.go index dd6fed39754..c27b1957e13 100644 --- a/tools/importer-msgraph-metadata/internal/pipeline/task_persist_service.go +++ b/tools/importer-msgraph-metadata/internal/pipeline/task_persist_service.go @@ -10,7 +10,7 @@ import ( func (p pipelineForService) persistApiDefinitions(sdkServices map[string]sdkModels.Service, commonTypes map[string]sdkModels.CommonTypes) error { for serviceName, service := range sdkServices { - p.logger.Info(fmt.Sprintf("persisting API Definitions for Service %q..", serviceName)) + p.logger.Info(fmt.Sprintf("Persisting API Definitions for Service %q..", serviceName)) opts := repository.SaveServiceOptions{ CommonTypes: commonTypes,