File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
6
6
7
7
## [ Unreleased]
8
+ * Implement ` Drain::flush ` method added in [ slog-rs/slog #349 ]
9
+
10
+ [ slog-rs/slog#349 ] : https://github.com/slog-rs/slog/pull/349
8
11
9
12
## 2.6.0 - 2022-02-20
10
13
### Changed
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ dynamic-keys = ["slog/dynamic-keys"]
25
25
default = []
26
26
27
27
[dependencies ]
28
- slog = { version = " 2.1.1 " }
28
+ slog = { git = " https://github.com/Techcable/slog.git " , branch = " feature/simple-flush-method " }
29
29
serde_json = " 1"
30
30
serde = " 1"
31
31
erased-serde = {version = " 0.3" , optional = true }
Original file line number Diff line number Diff line change @@ -254,6 +254,11 @@ where
254
254
}
255
255
Ok ( ( ) )
256
256
}
257
+
258
+ fn flush ( & self ) -> Result < ( ) , slog:: FlushError > {
259
+ let mut io = self . io . borrow_mut ( ) ;
260
+ io. flush ( ) . map_err ( slog:: FlushError :: from)
261
+ }
257
262
}
258
263
259
264
// }}}
You can’t perform that action at this time.
0 commit comments