I have uncovered at least two bugs in the erc package as of
Bug one: When logging and truncating is enabled and the the log file
is smaller than erc-max-buffer-size, the log is not inserted into the
buffer when joining a channel.
As of bitbucket today, this is fixed by changing line 238 in erc-log.el.