Skip to content

Commit b6b8e97

Browse files
authored
fix: Remove console output when disposing WriteApi (#101)
1 parent 9deafa1 commit b6b8e97

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## 1.9.0 [unreleased]
22

33
### API
4-
54
1. [#94](https://github.com/influxdata/influxdb-client-csharppull/94): Update swagger to latest version
65

76
### Bug Fixes
87
1. [#100](https://github.com/influxdata/influxdb-client-csharp/pull/100): Thread-safety disposing of clients
8+
1. [#101](https://github.com/influxdata/influxdb-client-csharp/pull/101/): Use Trace output when disposing WriteApi
99

1010
## 1.8.0 [2020-05-15]
1111

Client/WriteApi.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,12 @@ protected internal WriteApi(
194194
exception =>
195195
{
196196
_disposed = true;
197-
Console.WriteLine($"The unhandled exception occurs: {exception}");
197+
Trace.WriteLine($"The unhandled exception occurs: {exception}");
198198
},
199199
() =>
200200
{
201201
_disposed = true;
202-
Console.WriteLine("The WriteApi was disposed.");
202+
Trace.WriteLine("The WriteApi was disposed.");
203203
});
204204
}
205205

@@ -649,4 +649,4 @@ private bool Equals(BatchWriteOptions other)
649649
Precision == other.Precision;
650650
}
651651
}
652-
}
652+
}

0 commit comments

Comments
 (0)