googleapis / googleapis/dotnet-spanner-entity-framework

[Question] Query Log only shows SELECT statements, not INSERT or UPDATE

Open
#593 2 comments 1 reaction 0 assignees View on GitHub
priority: p3 type: feature request
Dominant language
C#
Stars
34
Forks
13
Avg merge
4h 39m
Merged PRs (30d)
10

Description

Hello,

I have a question about the query logging functionality.

I have configured the settings to display the query log. However, only `SELECT` statements are being logged, while `INSERT` and `UPDATE` statements are not appearing in the log.

Is this the intended behavior or a specification of the driver? If there is a way to configure it to correctly log `INSERT` and `UPDATE` statements as well, please let me know.

Thank you.

```cs
// Settings
services.AddDbContext((sp, options) =>
{
options.UseLazyLoadingProxies();
options.UseSpanner(connectionStringBuilder.ConnectionString);
options.UseMutations(MutationUsage.Never);

var loggerFactory = sp.GetRequiredService();
options.UseLoggerFactory(loggerFactory);
//...
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.