Skip to content

Commit

Permalink
Start log entries with lowercase consistently. (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperl authored Mar 6, 2024
1 parent ae42b7f commit 3b485d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/broker.toit
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class Session_:
waiting-for-ack_.remove id
return

logger_.warn "Unhandled packet $(Packet.debug-string_ packet)"
logger_.warn "unhandled packet $(Packet.debug-string_ packet)"

subscribe packet/SubscribePacket:
result-qos := []
Expand Down
10 changes: 5 additions & 5 deletions src/full_client.toit
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ abstract class ReconnectionStrategyBase implements ReconnectionStrategy:
if attempt-counter == 0:
// In the first iteration we try to connect without delay.
if not reuse-connection:
logger_.debug "Attempting to (re)connect"
logger_.debug "attempting to (re)connect"
reconnect-transport.call
else:
sleep-duration/Duration := ?
Expand All @@ -324,18 +324,18 @@ abstract class ReconnectionStrategyBase implements ReconnectionStrategy:
disconnect-transport.call
closed-signal_.wait --timeout=sleep-duration
if is-closed: return null
logger_.debug "Attempting to (re)connect"
logger_.debug "attempting to (re)connect"
reconnect-transport.call

send-connect.call
logger_.debug "Connected to broker"
logger_.debug "connected to broker"
return with-timeout receive-connect-timeout_:
result := receive-connect-ack.call
logger_.debug "Connection established"
logger_.debug "connection established"
result
finally: | is-exception _ |
if is-exception:
logger_.debug "(Re)connection attempt failed"
logger_.debug "attempting to (re)connect failed"

unreachable

Expand Down

0 comments on commit 3b485d4

Please sign in to comment.