Skip to content

Commit

Permalink
Avoid extra string allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
baelter committed Feb 13, 2025
1 parent 2b4e8be commit a6b894e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lavinmq/log_formatter.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "log"
module LavinMQ
struct JournalLogFormat < ::Log::StaticFormatter
def run
string "<#{severity_to_priority}> "
@io << '<' << severity_to_priority << '>' << ' '
source
context(before: '[', after: ']')
data(before: '[', after: ']')
Expand Down

0 comments on commit a6b894e

Please sign in to comment.