uwsgi_setup_log_master must always be called after logto(), this was not happening with --logto2