Copy the va_list before using it each time in log_internal().  Otherwise,
the second use of it (in vsprintf) doesn't work.  I suspect it only
needs to be copied prior to the initial vsnprintf but it seems safer to
use a copy of the arg list for each use.