Your friendly local programmer, uni student and *nix addict.

  • 1 Post
  • 14 Comments
Joined 1 year ago
cake
Cake day: June 26th, 2023

help-circle









  • Your analysis sounds correct - data did not match any variant of untagged enum is definitely from serde IIRC - but I can’t say for certain just by looking at the code.

    but I’d like the code to log self only when the enum does not match (errors). Thank you.

    Try changing line 48 to this:

    let object = match self.clone().try_into::<AnnouncableActivities>() {
        Ok(object) => object,
        Err(e) => {
            warn!("zebratrace receive {:?}", self);
            return Err(e);
        }
    }
    

    (This probably isn’t the best way to do this, but it’s what I came up with off the top of my head :P)



  • Personally, I don’t mind this sort of telemetry so long as they’re open about it - which looks to be the plan, at least for the moment.

    IMO the FOSS/Linux space has an odd relationship with telemetry that I think should change. I’d like to point out the gnome-info-collect debacle:

    • GNOME users: “GNOME devs don’t understand what we want!”
    • GNOME devs: “Hey, we want to get some data on how people use GNOME. If you’d like to help, install and run this one-off tool. Source code is here, and we collect XYZ metrics (all anonymized, of course.)”
    • (Some) GNOME users: screeching incoherently about data harvesting and telemetry