keith / reminders-cli

A simple CLI for interacting with macOS reminders
MIT License
663 stars 52 forks source link

Extra date, count info printed every time command is run #75

Open rileykav opened 7 months ago

rileykav commented 7 months ago

When I run reminders <anything> it prints a date-time and info line, with 'Store' and 'Account' counts, unlike all the examples which give a bare output. This is not helpful and just bogs up the screen. Here is the line that prints (I don't know what the no./.s in the [] are, but they seem very random each time, only matching a few of the initial numbers on a repeated command):

$ preview show-all
2024-01-23 21:45:35.390 reminders[potentially-private-no.s] XXX: countOfStores: 1, countOfAccounts: 1
ToDo: 0: Homework
.
.
.

I also tried to reach through the code database for a print statement of some sort, but couldn't find one/am not proficient with this code, and as it happens with every command (even --help), it seems like some deeper logic.

keith commented 7 months ago

Interesting, I don't see this one, I assume this is some output from macOS based on your settings / version, what's your macOS version? (I don't see it on 14.2.1)

rileykav commented 7 months ago

I am on 12.6.8

keith commented 7 months ago

we could try to poke around macOS internals to see if there's a default that we could flip to silence this. in the meantime you can probably wrap your reminders invocations with reminders "$@" 2>/dev/null to silence this

ap commented 2 months ago

Same issue here (on 12.7.5).

keith commented 2 months ago

might be an old OS version thing only. If someone who can repro wants to debug i assume we could dup the stderr file descriptor and just swallow those errors, potentially printing them if we fail