I think a single message should be enough: the number of keys should be printed even with debug disabled, and the actual keys should be in a separate TRACE message.