Members problem on importing Mybb to Discourse

To grab the log, use the good old tee command:

RAILS_ENV=production ruby mybb.rb | tee `date +%Y-%m-%d-%N`-import.log

This will create a log file in the current directory.