I'd recommend using one log line instead of two:

    log.info "X: #{a}: #{b}"

Less lines, less blocking on I/O - especially reported on S390