added log for production use
fixed logging on production server