Although '-' wasn't used by default either, it's much more likely that
custom session IDs might contain it. ':' is hopefully less likely to be used.
This allows log parsers that actually want to find out the original session's
all log lines to cut out everything after the initial ':'.
string_t *str = str_new(pool, MAX_BASE64_ENCODED_SIZE(prefix_len + 1 + sizeof(guid)));
if (prefix != NULL)
- str_printfa(str, "%s-", prefix);
+ str_printfa(str, "%s:", prefix);
guid_128_generate(guid);
base64_encode(guid, sizeof(guid), str);