Azure / Azure/data-api-builder

[Bug]: Inconsistent and superflous logging?

Abierto
#2,311 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug triage
Lenguaje dominante
C#
Estrellas
1.5k
Forks
370
Merge medio
3 d 22 h
PR fusionados (30 d)
9

Descripción

### What happened?

```dos
dab init -c dab-config.json --database-type mssql --connection-string "@env('dab-connection-string')" --host-mode Development
dab add "Album" --source "[dbo].[Album]" --fields.include "AlbumId,Title,ArtistId" --permissions "anonymous:*"
```

Results in the following console output from the second command:

```dos
Information: Microsoft.DataApiBuilder 1.1.7
Information: Config not provided. Trying to get default config based on DAB_ENVIRONMENT...
Information: Environment variable DAB_ENVIRONMENT is (null)
Loading config file from dab-config.json.
```

In my opinion, there are multiple issues here:
- Given that there is a dab-config.json file in the folder, why do I need to see line 2 and 3.
- Why is line 4 not prefixed with "Information:" - looks like a Console.WriteLine rather than logging, and looks inconsistent

### Version

1.1.7

### What database are you using?

Azure SQL

### What hosting model are you using?

Local (including CLI)

### Which API approach are you accessing DAB through?

REST

### Relevant log output

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce los comandos reportados `dab init` y `dab add` con `dab-config.json` y, a continuación, sigue las rutas de descubrimiento de configuración y registro en consola de la CLI. La tarea estará terminada cuando se hayan abordado los mensajes de configuración innecesarios y todas las salidas restantes utilicen prefijos de registro coherentes.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, csharp, sql
Área
cli, observability-sre
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.