Hi,
I just realized, that when you set that option before initialization, is reset at initialization to default "inform" verbosity level. Sorry, my mistake. What I suggested will work after initalisation, but it has less use for you.
Try this,
char mumps_options[] = {"-log_sl warning"}
PetscOptionsInsertString(NULL, mumps_options);
However, a much better solution is to create a param file, and put options which you wish to be default there, for example into param_file.petsc. Then in the input param file, you put "-log_sl warning".
const char param_file[] = "param_file.petsc";
MoFEM::Core::Initialize(&argc, &argv, param_file, help);
L.