Skip to content

Commit a0d35cb

Browse files
authored
[plugins/posthog][chore] Log conversion errors (#2268)
1 parent 381f8a1 commit a0d35cb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/posthog/fix_plugin_posthog/resources.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from datetime import datetime
22
from attrs import define
33
from typing import Optional, ClassVar, List, Dict
4+
from fixlib.logger import log
45
from fixlib.graph import Graph
56
from fixlib.baseresources import BaseAccount, BaseResource
67

@@ -115,5 +116,6 @@ def new(data: Dict) -> BaseResource:
115116
def convert_date(isodate_str: str) -> Optional[datetime]:
116117
try:
117118
return datetime.strptime(isodate_str, "%Y-%m-%dT%H:%M:%S.%fZ")
118-
except Exception:
119+
except Exception as e:
120+
log.debug(f"Error converting date: {e}")
119121
return None

0 commit comments

Comments
 (0)