0:00:00Welcome to Under the Radar, a show about independent iOS app development.
0:00:04I'm Marco Arment.
0:00:06And I'm David Smith. Under the Radar is never longer than 30 minutes, so let's get started.
0:00:10So, we need to log an event that we have started the show, duly noted.
0:00:14And then when the show ends, we'll log another event that the show has ended.
0:00:18And we can use this to make our event log for our podcast.
0:00:22This is... [laughs]
0:00:24Logging in apps is about as exciting as this intro has been so far.
0:00:29But it actually... I have found it to have some significant value.
0:00:33And some context here for what I'm talking about is...
0:00:37There's been all sorts of logging frameworks that you can embed into your app
0:00:41to go beyond just like nslog and to actually have things like
0:00:45different logs for different things, to have different subsystems of your app
0:00:49be logging in different ways, customization of how and where they're logged,
0:00:53persistence of logs, maybe some display of the log on device
0:00:57for debugging or including in beta bug reports and stuff like that.
0:01:02And I recently started diving into this world, I guess re-diving into it.
0:01:07A long time ago I used... What was that one? Cocoa Lumberjack?
0:01:11I used that forever ago.
0:01:13That sounds right, but that feels like a very long time ago.
0:01:15Yeah, and I don't even know... I think it's still maintained, but I haven't used it in a while.
0:01:20But in the latest Overcast Beta series, part of this update to the app
0:01:25is that I rewrote a whole bunch of subsystems, or at least I refactored or modernized them
0:01:30in significant ways. Many of the subsystems of the app are now
0:01:35rewritten in Swift, many of them are, if not rewritten, at least now interacting
0:01:40with rewritten components, so there's been a lot of changes under the hood.
0:01:45And as part of my testing and quality control process, I wanted to have some kind of
0:01:50persistent logging, that I could log stuff that happened in the app,
0:01:55and importantly on the watch app, I could log them to a file somewhere in the app's control
0:02:00and then I could have that file be emailed to me if people had bug reports,
0:02:05or they could paste it into the slack, or I could even just look at it and see with my own app,
0:02:10like, what's going on with my app when I'm not connected to Xcode?
0:02:15Like, what happens overnight? Do I get the background refreshes and stuff like that?
0:02:20And so I built out, of course, because it's me, I built out my own custom logging thing.
0:02:25Of course. And it's very simple.
0:02:30Part of the reason I do these things myself so often is that I want things to be
0:02:35exactly what I need, but no more than that. I like things to be very simple.
0:02:40And so my logging quote framework is one file and I think it's, you know,
0:02:45maybe a hundred lines of code. There's not much to it, but it's good for me.
0:02:50And the main difference between it and just nslog is persistence to a file,
0:02:55and that's about it. Pretty much everything else about it is pretty basic.
0:03:02Just, you know, printing formatted strings with timestamps on them.
0:03:07But I have found this to be an incredibly useful tool,
0:03:12not only for just general app quality, but also just to see, like,
0:03:17the things I've rewritten. Are they working right? You know, are, like, what,
0:03:22how are they behaving? Are they behaving the way I intended them to behave?
0:03:27And is there anything about them that is either, you know, that either is broken
0:03:30or that needs improvement or that could be improved?
0:03:33And I've found a number of these throughout my Overcast Beta process so far,
0:03:38thanks to this log that I added. I mean, I just added it maybe a few weeks
0:03:43or a month ago, so it's actually been pretty recent. But I'm curious, Dave,
0:03:47do you do anything like this? Any kind of, like, persistent logging and, you know,
0:03:50bug report log attachment kind of stuff?
0:03:53So I use it, but only internally. Like, I've never built something like this
0:03:56in a way that it has ever customer-facing or even beta customer-facing.
0:03:59It's always been something that, and I think especially, again, on the watch,
0:04:04it's a situation where I found, I know when I was developing a lot of workout
0:04:08stuff on the watch, there was a lot, it was just the nature of doing workouts
0:04:12was that it was very inconvenient to be connected to Xcode while I was, like,
0:04:16going for an outdoor run. And so I needed to build a bunch of, you know,
0:04:21like, essentially persistent logging into the application just to the degree
0:04:26that I could, like, keep track of what was going on and, you know,
0:04:31identify any bugs or issues or make sure that things were writing to HealthKit correctly.
0:04:34And so I've done it in that sense, but it's never been something that I've sort of
0:04:39wrapped up to a point where it would ever be, you know, had a nice, pretty exterior to it.
0:04:42Mostly what I'm doing is just, like, you know, turning on iTunes file sharing
0:04:47and having the app just, like, dump a log file into the app's documents directory
0:04:53that I can pull out from Finder.
0:04:58But it is one of those funny things that I feel like, you know,
0:05:01if ultimately the best way to, like, debug a view is to put a border around all your views.
0:05:04And the best way to debug logic or sort of anything slightly more complicated
0:05:09is with, like, logging statements.
0:05:14Like, every year Apple comes out with these amazing cool things in Xcode
0:05:16where it's, like, their crazy view debugging thing or the memory architecture
0:05:19or all these things that they've come up with and they keep improving the logging system.
0:05:21I mean, that's cool, but, like, I find in day-to-day practice,
0:05:26like, a good, well-placed log statement is just worth its weight in gold.
0:05:29So it's kind of one of those funny things about being a developer,
0:05:34is that, like, you know, when I was in the early days of developing,
0:05:36maybe I thought I was like, "Oh, this is just like what noobs like me do."
0:05:40But now it's like I'm less of a beginner at this,
0:05:43but I still, you know, my apps are constantly filled with log statements
0:05:46and it's such a useful way to visualize kind of turning the sort of multidimensional complexity
0:05:51of an application into just a linear flow of events.
0:05:58And that, like, that simplification is so powerful at helping us diagnose problems
0:06:01or even just, like, verifying that things are working correctly,
0:06:06even if it isn't in from a purely diagnostic perspective.
0:06:09Oh, yeah.
0:06:12And, like, I have found, I mean, you mentioned the, you know, the watch workout case.
0:06:15This, to me, like, this is where logging is incredible,
0:06:20because it isn't just about workout apps, it's just any watch app.
0:06:23Debugging on the Apple Watch is slow and unreliable and is never a very fun process.
0:06:26And so sometimes you need to know, like, you know,
0:06:33what was going on during the other 95% of the time that my app exists on my watch.
0:06:36What's going on that other rest of the time?
0:06:42Is it getting those background updates?
0:06:41Is it crashing?
0:06:46You know, like, there's certain things that are just easier to spot
0:06:47or pull out of a log file than to try to figure out through, you know, direct debugging methods.
0:06:51And so this has been kind of, like, my slow process of, like,
0:06:57modernizing and improving my app, even crash logs.
0:07:01Like, I added my own crash reporter a few versions ago now,
0:07:06where it submits to my server any uncaught exception crash logs.
0:07:11Because Apple's crash logs, I think at the time, and I think still today,
0:07:15for uncaught exceptions, they don't tell you what the exception was.
0:07:19They just tell you it's an uncaught exception that was thrown here.
0:07:23And they might tell you, like, the name of it,
0:07:26but they won't tell you any of the, like, the parameters
0:07:28or, like, the description string or anything like that.
0:07:30So I found it hard to debug that just from Apple's own crash reports,
0:07:32because I didn't know, like, okay, there was an exception thrown, you know,
0:07:37on this dictionary line, like, well, it's probably something was nil or something,
0:07:40but I don't know that for sure.
0:07:43And it would be nice to know, like, what's the actual message being thrown here.
0:07:45And so I built in my own very basic, like, uncaught exception handler crash reporter a few months back,
0:07:50and it sends them to my server.
0:07:55And I have a little shell script that I can run based on the UUID of each crash that gets reported.
0:07:59I can automatically look up the symbolicated symbols in my archives
0:08:04and run this shell script, and it symbolicates the whole crash log for me most of the time.
0:08:09Symbolication works most of the time.
0:08:15That's the case with any crash reporting system I've ever worked with.
0:08:18It's like, most of the time it works perfect.
0:08:23Some of the times, not at all.
0:08:25Exactly.
0:08:24And again, and this is another, you know, I'm building all this stuff myself,
0:08:29in part because I'm just, you know, that kind of jerk,
0:08:32and I only trust my own code to do most things,
0:08:35but also it really keeps things a lot simpler and more privacy conscious.
0:08:37You know, I don't want to be using some big service to do something that I can do fairly simply myself.
0:08:42You know, if I need a really big pain in the butt problem solved,
0:08:48like hosting servers, like, I don't want to physically deal with servers,
0:08:52so I outsource that to our friends at Linode, and this is not a sponsorship.
0:08:57I outsource it to Linode because running servers is a really big deal that I don't want to do myself.
0:09:01But stuff like having a log framework in my app, that's a really small deal.
0:09:06I don't have massive needs for that.
0:09:10I need to write statements to a file and be able to get to that file sometimes.
0:09:12That's it.
0:09:16And so doing stuff like this myself, I feel like is worth that trade-off.
0:09:18If you're in a bind and you don't have a lot of time, obviously,
0:09:23I would understand completely for people who are like, "That's fine for Marco,
0:09:27but I have to use whatever this free service is by Google or Twitter or Facebook or whatever."
0:09:31I don't have the kind of needs that would need something big like that when it's something simple like this.
0:09:37But I do get a lot of value out of having this kind of functionality at all.
0:09:42And to me, that's a perfect recipe for something that's good to write yourself.
0:09:46And I think what's interesting there is that sense of identifying the need.
0:09:51I think it's the first step, though.
0:09:56In terms of both of these things, what are you actually trying to do?
0:09:58Is this something that you're trying to ultimately expose to your mainstream users?
0:10:01Is it going to have a wide audience and user base?
0:10:06Those are the kind of things that you need to make sure you understand it too ahead of time
0:10:09for whether it makes sense to build it yourself or even just what this looks like from a privacy perspective
0:10:12and what the privacy implications are.
0:10:17It's something that you only expect to turn on and have active, say, during beta builds.
0:10:19There's a different set of privacy expectations and things that you need to communicate in those contexts
0:10:25than if it's something that's going to go out to your main big users.
0:10:30And so I think that's also the thing to keep in mind.
0:10:34And whether you build it yourself or use a hosted thing, it is one of those
0:10:36"increasingly I find myself just trying to, as much as I can, just build things myself."
0:10:39Because honestly, I have such anxiety about all the things going on with the privacy space right now.
0:10:44With Apple, where they're tracking changes and the IDFA changes and all these things.
0:10:52There's just so much ambiguity there that it's like, anytime you can just take away one of the,
0:10:56"Huh, if I include this thing, is it going to end up being a giant pain down the road?
0:11:01Or am I going to end up being caught up in something where, even if you're not using the parts of that framework or language,
0:11:08that could be creepy?"
0:11:13Then your app is flagged by Apple, and App Review looks at you and says,
0:11:16"Oh, because you linked to this thing, then you have to do it."
0:11:20And so in that sense, rolling it yourself I think makes sense.
0:11:23And especially as long as you can roll it out in a way that is reasonable in terms of time it takes to build,
0:11:26and time and expense in terms of hosting, which is probably fairly manageable.
0:11:32It's definitely something that I've found myself doing a lot more.
0:11:37And it's not to your degree, where I think you build everything yourself.
0:11:40There are a few things that I'll still outsource, but I'm definitely handing in that direction myself over time.
0:11:44We are sponsored this week by Pingdom.
0:11:52Do you have a website, and does it have things like a shopping cart or a registration form or a contact page?
0:11:55If you answered yes to any of those questions, you need Pingdom.
0:11:59Nobody wants their critical website transactions to fail.
0:12:04That means a bad experience for your users, and could mean lost business for you.
0:12:07But the good news is, you can set up transaction monitoring with Pingdom.
0:12:11Transaction monitoring will alert you when things like cart checkout or forms or login pages fail,
0:12:15before they affect your customers and your business.
0:12:20Pingdom can let you know the moment any of them fail, in whatever way is best for you.
0:12:23You fully customize how you're alerted, who is alerted, when you're alerted,
0:12:26depending on the outage of severity.
0:12:31And Pingdom cares about your users having the smoothest site experience possible.
0:12:33So if disaster strikes, you will be the first to know so you can get in there and fix it.
0:12:37It's super easy to get started.
0:12:42I've personally been a Pingdom customer for, oh man, maybe 10 years?
0:12:43It's been a long time, because it's a great service for monitoring pretty much anything.
0:12:47So you can see for yourself, Pingdom.com/RelayFM right now,
0:12:52for a 30 day free trial with no credit card required.
0:12:57When you sign up, use promo code RADAR at checkout to get a huge 30% off your first invoice.
0:13:02Once again, Pingdom.com/RelayFM, code RADAR for 30% off your first invoice.
0:13:08Thanks to Pingdom from SolarWinds for their support of this show and RelayFM.
0:13:13So I'm curious, I've been using this kind of system in Overcast,
0:13:21both the logging and then a different kind of logging that I'll get to in a second.
0:13:26And I've actually made significant quality fixes and usage fixes from this logging.
0:13:29Last week I found that I had actually forgotten in certain cases
0:13:36to schedule the next background refresh task for Overcast.
0:13:42And I was able to verify this by looking at my own log and saying,
0:13:46"Oh, this is somehow wrong. I'm not getting background refreshes all night long."
0:13:49And I had a couple of beta testers report the same thing, like,
0:13:54"Hey, I got a background refresh at midnight and then nothing until 8 in the morning.
0:13:56It's supposed to be more often than that."
0:14:00And I was able to look and find the issue, and like, "Oh, I wasn't fixing this correctly."
0:14:02And so I was able to do it.
0:14:07One other thing I saw in my main logging is I noticed that
0:14:10I was running new artwork fetches for podcasts much more often for certain shows than I thought.
0:14:18And it was necessary.
0:14:23And I know this because I would see ATP said it had a new artwork version.
0:14:24And I thought, "I didn't change the artwork for ATP. I'm pretty sure something is wrong here."
0:14:29You would know. You would definitely know.
0:14:35Right, and I noticed after every time it would sync artwork, it would say, "ATP's artwork had changed."
0:14:37And I was like, "That's not right."
0:14:43And I traced it to actually a server bug that, depending on which server it was,
0:14:45had checked the artwork.
0:14:50These two servers had a slightly different version of ImageMagick on them.
0:14:52And so they would encode the artwork to a different sequence of bytes, depending on which server encoded it.
0:14:56And so I discovered this whole image bug.
0:15:03I was able to fix that server side, basically comparing the bytes before compression instead of after.
0:15:07Which I should have been doing the whole time anyway, but oh well. No one's perfect.
0:15:13And so I was able to fix this server side bug because I was noticing in my own local logs in the app,
0:15:18"Hey, this isn't right."
0:15:24And then the other thing that I was working on, I've gotten some reports here or there over the years of making Overcast.
0:15:26People often report that it uses a lot of cell data sometimes.
0:15:33And it's really hard to debug that.
0:15:36Because especially an app that's designed to let you download large numbers of podcasts,
0:15:39it's kind of hard to know when someone says it uses a lot of data.
0:15:44Is that my fault or theirs?
0:15:48And so I built this whole feature into the current beta version that will be shipping soon
0:15:51that actually tracks data usage logging.
0:15:55It actually logs every single bit of data that I can find a way to track my app using.
0:15:59It logs it.
0:16:04And this is largely thanks to a thing that I don't know if many people know about.
0:16:04On NSURL session, there's a delegate method that was added a few OS versions ago.
0:16:09Something something did finish collecting metrics for task.
0:16:15And there's this whole URL session task metrics object that will tell you for any URL task that you want to know about,
0:16:19it'll tell you whether it went through any redirects, what they were,
0:16:25and then all the byte usage for all their different requests.
0:16:29It'll send the bytes from the headers, bytes from the bodies.
0:16:30It tells you all that stuff in this URL metrics object.
0:16:35And so I went through my app and I audited all the network fetches I could find
0:16:39and added this metrics collection.
0:16:43And I have this whole feature now that categorizes and shows you in a similar way to,
0:16:45I have a storage usage screen that shows you storage by podcast.
0:16:51I now have a similar screen in the current beta for data usage.
0:16:55And it'll break down for each podcast.
0:16:55Like here's how much data was spent on audio, images, sync data and updates, etc.
0:17:00And what I found was that certain podcasts that I was subscribed to
0:17:06were sending huge amounts of data as feed updates.
0:17:10And I noticed, like, wait, why is this feed using like 20 megabytes of data in a day?
0:17:15That's a ton of feed updates.
0:17:21And I eventually traced it to the specific issue where certain feeds now,
0:17:23especially this is very common with user specific private feeds.
0:17:28So any premium content that you subscribe to that you pay for, or like Patreon feeds, things like that,
0:17:32where each user gets their own feed and there's like a big hash after it.
0:17:37ATP's feed works that way as well.
0:17:40Many of these feeds are now doing hashed enclosure URLs.
0:17:42So they'll have, at the end of each audio enclosure URL,
0:17:48they'll have some giant long URL hashed with a time-bombed, time-expiring link,
0:17:51like an S3 signed URL or something like that.
0:17:56And every time you fetch the feed, or maybe every 15 or 30 minutes,
0:17:59those URLs all change.
0:18:04Which means that every single time this feed is fetched by Overcast servers,
0:18:06the entire feed has changed because all of its download URLs have changed.
0:18:11This causes tons of sync data because the way Overcast works is
0:18:17whenever your app checks in with the servers and something has changed about the feed,
0:18:22it downloads whatever has changed.
0:18:26And so these feeds that had per user hashes that would change every hour, 15 minutes or whatever,
0:18:28they were just causing huge amounts of data transfer,
0:18:35but the only changes were the enclosure URLs.
0:18:38And so I was able to fix that even server-side as well,
0:18:40where I just redirect all downloads now through an overcast.fm/download/giant_long_hash URL.
0:18:46Which then that redirects to whatever the current enclosure URL is in the feed.
0:18:51But what that means to the app is that those URLs are no longer changing every hour for all those feeds,
0:18:56which means that those feeds now have way, way less data usage on the sync side of things.
0:19:01And I was only able to find that because of all these logging features I'm building into the app.
0:19:08And so it seems really boring.
0:19:11This seems like a grunt work boring task,
0:19:16but I really have gotten a lot of significant value out of just selectively adding a few bits of logging
0:19:21and a few metric collection things here and there.
0:19:28And there is also this whole other system I wanted to mention that I haven't looked fully into yet,
0:19:31but there's an API called MetricKit that was added in iOS 13 and a little bit expanded in iOS 14.
0:19:38This is a whole Apple API for things like total data usage of your app,
0:19:43disk writes, crash logs, CPU usage, et cetera.
0:19:48And it's not real-time, so it's not, you basically get an update once a day or something like that.
0:19:52I haven't done a lot of work against it yet, but I'm trying to add it into my logging
0:19:57and have this augment what I'm already logging and check my work on certain areas,
0:20:02like the network transfer stuff.
0:20:04And I think it's this great framework that it's not showing you anything new
0:20:09that you can't just get from the Xcode summary tabs for energy logs and stuff like that.
0:20:14At least I don't think it is, or at least it's not doing too much more than that.
0:20:21But it's nice to be able to have that locally in the app
0:20:24and then to be able to associate certain high-usage scenarios with,
0:20:28"All right, well, how many podcasts does this person subscribe to?"
0:20:31And so if somebody subscribes to five podcasts and they're having high data usage,
0:20:36it's a very different scenario than if they subscribe to 500 podcasts and they have high data usage.
0:20:41So it's nice to be able to have this kind of stuff in the app
0:20:45and be able to find other quality issues that your own logging couldn't catch.
0:20:48Yeah, and I think what's interesting, too, is it's the,
0:20:53so much of this is about logging lets you check your assumptions.
0:20:57There's so many of these things where you assume,
0:21:02you were saying, "I assume that I'm requesting all my background app refreshes.
0:21:05So if I'm not getting them, it's because the system is doing something wrong."
0:21:10You've made this assumption that, "Of course, every time I start one, I schedule the next one."
0:21:15And it lets you check your work on that.
0:21:20Or you assume, "Why would feeds be changing all the time?"
0:21:22It's like, "That doesn't make any sense."
0:21:22There's a reason for that.
0:21:27There are certain assumptions that I feel are really hard to catch unless you have this,
0:21:28because you have this data that doesn't care about what your assumption was.
0:21:33It's just a measurement of what happened in reality, and it lets you catch these things.
0:21:40Because I know I've run into things where these situations are like,
0:21:45"Why would there be all this cellular data usage?"
0:21:48And it's like, in Overcast, you do cellular...
0:21:53I remember years ago, you were doing battle with the downloader
0:21:57so that it would only ever download based on your settings of
0:22:02"Use Wi-Fi or Use Cellular."
0:22:07So it probably wasn't the syncing of the audio files themselves.
0:22:10It's going to be something else.
0:22:15And it's like, "Oh, these are just normal server sync messages
0:22:14that you send irrespective of Wi-Fi or Cellular."
0:22:19So in theory, they should be relatively straightforward and small and simple,
0:22:22but you found a situation where that assumption was invalidated.
0:22:25And so it's just one of those things that I think logging is so powerful for.
0:22:29But one thing that I'm just curious about with you is,
0:22:34when you're making a log, are you annotating that with things other than just the time?
0:22:37Are you using user-specific tokens?
0:22:43Or how are you keeping track of this in a way that you can pull back together
0:22:48the timeline of what happened subsequently at the end?
0:22:52So there's not much I can pull back because I'm not adding any user data to it.
0:22:56However, the log doesn't even get to me unless the user sends it to me.
0:23:02So for privacy reasons, obviously you have to be careful how much you're logging
0:23:08and what you're logging and where those logs are going.
0:23:11The way my logs work is they're just files locally,
0:23:16and the only way you can get to them is on the feedback screen.
0:23:18There's a button on the right that says "Debug Log."
0:23:22And again, this is only in the current beta.
0:23:24This is not in the App Store version yet, but it will be if Apple lets me leave it there.
0:23:25So you hit "Debug Log," and then it opens up a share sheet with two text files attached.
0:23:30One from the phone, one from the watch. That's it.
0:23:35And then you can choose what to do with that information.
0:23:38If you want to send it to me as part of a report, that's fine.
0:23:37People have largely figured that out, but that's fine.
0:23:42So from a privacy perspective, I could theoretically stick a user number in there or something,
0:23:45but I'd rather not just because I don't really need it.
0:23:52The main things I put in the log are things like the activity statements,
0:23:55of things like, "Okay, we're syncing because this feed has changed.
0:24:01We're syncing because this artwork has changed," etc.
0:24:04"This download just completed over cellular. This one didn't."
0:24:05But also I just have basic admin data, like, "Okay, I'm running this build number,
0:24:10this PID," similar to the nslog prefix where it has the date and the PID.
0:24:14But also I just add version history, or version number and build number to it.
0:24:20So that way I can tell when someone's sending a report from the beta,
0:24:23like, "Okay, which version were they actually running?
0:24:26Are they running the latest build? Do I know of a certain problem with the one they are running?"
0:24:28etc.
0:24:29For the most part, I'm not adding more information than I think I would really need to diagnose particular problems.
0:24:34So I'm not adding things like their login token or their email address if I have it or anything like that,
0:24:41because that's just not relevant to the problems I'm trying to solve.
0:24:48Sure.
0:24:51That was one of those things that in my past when I've gone down this road is
0:24:52what's really awkward sometimes is there are certain categories of bugs that are very hard to reproduce generically,
0:24:58but some users' configuration will reproduce a bug regularly and straightforwardly.
0:25:03And it's one of those tricky things where sometimes it's like,
0:25:11I've definitely done the thing where you essentially make a fake login token and login almost as though I'm that person,
0:25:14but it's always kind of a tricky thing where you don't want to obviously access someone's private data
0:25:21and get into that in a way that starts to become privacy conscious.
0:25:25And so it's a really awkward thing where sometimes you want to find this balance between collecting just enough data
0:25:30that you'd be able to recreate it essentially with fictitious data without needing to go into this specific case of a specific person
0:25:36and what their specific actual data that would be privacy conscious or privacy a concern is.
0:25:44And so it's just always such a tricky thing.
0:25:51It's like, are you keeping track there?
0:25:51When you say a feed has changed, are you keeping track of the actual feed ID there?
0:25:56Or just some generic feed has changed?
0:26:01In that case, that's the specific feed with the feed ID.
0:26:04It's just a podcast entry.
0:26:09Overcast, by the way it works, already knows for this user ID number,
0:26:11they subscribe to feeds X, Y, and Z.
0:26:16It has to know that.
0:26:17That's all that is.
0:26:22Again, I try to minimize the personal data whenever possible.
0:26:24There are certain cases where I think it's warranted to associate.
0:26:28One example is on the ATP membership panel.
0:26:33There's a link to email us with any kind of question about your membership.
0:26:36And when you do that, it's a mail to link that includes in the subject line your membership number,
0:26:40like your user ID number.
0:26:42And on the back end, I have a crappy little admin panel that I can just paste in that number
0:26:47into either our dashboard or into Stripe's dashboard for payments.
0:26:52And that number just instantly brings up that customer's account
0:26:56and whatever info I might need to help them fix their problem.
0:26:59And that kind of thing I think is totally fine.
0:27:02You're already my customer.
0:27:05You're already emailing me about your account,
0:27:07so I'll make it easier for me to find your account by having this number in the subject line
0:27:09that you can plainly see.
0:27:14I feel like that kind of thing is okay.
0:27:16Yeah.
0:27:18And I totally agree.
0:27:19I feel like there's something, in some ways,
0:27:20the best kind of privacy stuff like this is always the sense of,
0:27:22it's giving the user control about what they're sharing with you.
0:27:25And this is another example where it's like,
0:27:29if you were automatically collecting those log files
0:27:31and streaming them to a server
0:27:34and transparently in the background,
0:27:36which I'm sure there are systems in place in the world
0:27:35and there are many apps, I'm sure they'd probably even do this.
0:27:40That starts where you start to get into situations
0:27:42that become very complicated from a privacy perspective.
0:27:45And potentially you could find and track down
0:27:48a whole lot of bugs that way.
0:27:50As long as it's something where the user is making that choice
0:27:52and it's a conscious and opaque thing,
0:27:54whatever the opposite of transparent is.
0:27:58It's like making sure that it's clear to them.
0:28:00It's like making sure that it's completely clear to the user
0:28:02that what they're doing is they're going to email you
0:28:01and in that email it's going to have a file
0:28:06and the file isn't some sort of garbled, cryptic thing.
0:28:08It's like, nope, it's just a plain text file.
0:28:12They can see exactly what's going with them.
0:28:14Then it feels like you're in the clear for,
0:28:16they've made this choice to send it to you
0:28:18and you're not imposing on their privacy.
0:28:20You're just responding to something
0:28:23that they want decided to share to you.
0:28:25Yeah, exactly.
0:28:26All right, well, thanks for listening
0:28:26to this exciting episode about logging.
0:28:31Hey, don't talk down to logs.
0:28:34Logs are very important and I think it's time
0:28:37they finally got their due and I'm glad we got that.
0:28:40But now we can record that event that the podcast has ended.
0:28:42Thanks for listening everybody