mirror of
https://github.com/nostrlabs-io/notepush.git
synced 2025-06-14 11:07:43 +00:00
Add more debug logging for better troubleshooting
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@ -18,6 +18,11 @@ impl MuteManager {
|
||||
event: &Event,
|
||||
pubkey: &PublicKey,
|
||||
) -> bool {
|
||||
log::debug!(
|
||||
"Checking if event {:?} should be muted for pubkey {:?}",
|
||||
event,
|
||||
pubkey
|
||||
);
|
||||
if let Some(mute_list) = self.get_public_mute_list(pubkey).await {
|
||||
for tag in mute_list.tags() {
|
||||
match tag.kind() {
|
||||
|
@ -132,6 +132,7 @@ impl NotificationManager {
|
||||
);
|
||||
let one_week_ago = nostr::Timestamp::now() - 7 * 24 * 60 * 60;
|
||||
if event.created_at < one_week_ago {
|
||||
log::debug!("Event is older than a week, not sending notifications");
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user