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/)
55and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
66
77## [ 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
811
912## 2.6.0 - 2022-02-20
1013### Changed
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ dynamic-keys = ["slog/dynamic-keys"]
2525default = []
2626
2727[dependencies ]
28- slog = { version = " 2.1.1 " }
28+ slog = { git = " https://github.com/Techcable/slog.git " , branch = " feature/simple-flush-method " }
2929serde_json = " 1"
3030serde = " 1"
3131erased-serde = {version = " 0.3" , optional = true }
Original file line number Diff line number Diff line change @@ -254,6 +254,11 @@ where
254254 }
255255 Ok ( ( ) )
256256 }
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+ }
257262}
258263
259264// }}}
You can’t perform that action at this time.
0 commit comments