File tree Expand file tree Collapse file tree
lib/log_bench/app/renderer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -193,6 +193,8 @@ def build_detail_lines(request)
193193 entry_id += 1
194194 add_request_id_lines ( lines , request , entry_id )
195195 entry_id += 1
196+ add_request_timestamp_lines ( lines , request , entry_id )
197+ entry_id += 1
196198 add_params_lines ( lines , request , max_width , entry_id )
197199 entry_id += 1
198200 add_related_logs_section ( lines , request , entry_id )
@@ -378,6 +380,20 @@ def color_pair(n)
378380 screen . color_pair ( n )
379381 end
380382
383+ def add_request_timestamp_lines ( lines , request , entry_id )
384+ if request . timestamp
385+ lines << {
386+ text : "Timestamp: #{ request . timestamp . strftime ( "%Y-%m-%d %H:%M:%S UTC" ) } " ,
387+ color : nil ,
388+ entry_id : entry_id ,
389+ segments : [
390+ { text : "Timestamp: " , color : color_pair ( 1 ) } ,
391+ { text : request . timestamp . strftime ( "%Y-%m-%d %H:%M:%S UTC" ) , color : nil } # Default white color
392+ ]
393+ }
394+ end
395+ end
396+
381397 def detail_win
382398 screen . detail_win
383399 end
You can’t perform that action at this time.
0 commit comments