View Source Baby.Util (Baby v0.6.0)

Utility functions for use across the codebase

Link to this section Summary

Functions

Standardised connection activity logging for the supplied state dir: :in, :out, :both msg: a protocol message type atom level: log lvel atom (default: :debug)

Returns tuples of the endpoints of the widest continuous ranges in a list of integers

Link to this section Functions

Link to this function

connection_log(conn_info, dir, msg, level \\ :debug)

View Source

Standardised connection activity logging for the supplied state dir: :in, :out, :both msg: a protocol message type atom level: log lvel atom (default: :debug)

Returns tuples of the endpoints of the widest continuous ranges in a list of integers