mirror of
https://github.com/nostrlabs-io/notepush.git
synced 2025-06-16 03:48:10 +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,
|
event: &Event,
|
||||||
pubkey: &PublicKey,
|
pubkey: &PublicKey,
|
||||||
) -> bool {
|
) -> 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 {
|
if let Some(mute_list) = self.get_public_mute_list(pubkey).await {
|
||||||
for tag in mute_list.tags() {
|
for tag in mute_list.tags() {
|
||||||
match tag.kind() {
|
match tag.kind() {
|
||||||
|
@ -132,6 +132,7 @@ impl NotificationManager {
|
|||||||
);
|
);
|
||||||
let one_week_ago = nostr::Timestamp::now() - 7 * 24 * 60 * 60;
|
let one_week_ago = nostr::Timestamp::now() - 7 * 24 * 60 * 60;
|
||||||
if event.created_at < one_week_ago {
|
if event.created_at < one_week_ago {
|
||||||
|
log::debug!("Event is older than a week, not sending notifications");
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user