It matters little whether others know you corrected someone who has done something wrong. But it matters much when others don't know whether you disciplined someone for doing a wrong thing.