File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,3 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1818## [ 0.1.3] - 2021-06-11
1919
2020- Fixed detection of the frame that calls the logger.
21+
22+ ## [ 0.1.7] - 2021-08-16
23+
24+ - Fixed runtime context's frame label encoding.
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ def convert_to_runtime_context(frame)
129129 {
130130 file : path_relative_to_app_root ( frame ) ,
131131 line : frame . lineno ,
132- frame_label : frame . label ,
132+ frame_label : frame . label . dup . force_encoding ( 'UTF-8' ) ,
133133 }
134134 end
135135
Original file line number Diff line number Diff line change 11module Logtail
2- VERSION = "0.1.6 "
2+ VERSION = "0.1.7 "
33end
Original file line number Diff line number Diff line change 3030 expect ( hash [ :context ] [ :runtime ] [ :file ] ) . to end_with ( '/spec/logtail/log_entry_spec.rb' )
3131 expect ( hash [ :context ] [ :runtime ] [ :line ] ) . to be ( 25 )
3232 expect ( hash [ :context ] [ :runtime ] [ :frame_label ] ) . to_not be_nil
33+ expect ( hash [ :context ] [ :runtime ] [ :frame_label ] . encoding . to_s ) . to eq ( 'UTF-8' )
3334 end
3435 end
3536end
You can’t perform that action at this time.
0 commit comments