Skip to content

JDTB-31 Save log detail with Timestamp #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

megham2908
Copy link
Contributor

Ticket: https://wearejh.atlassian.net/browse/JDTB-31

Description:
Save log detail with timestamp grabbed on event moment. Later, we will the sort the logger status table by timestamp.

@@ -23,7 +24,8 @@ public function addEvent(
string $identifierValue = '',
int $severity = 1,
bool $createIssue = true,
\Exception $exception = null
\Exception $exception = null,
\DateTime $timestamp = null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These types are incorrect if null value is possible

@@ -8,7 +8,7 @@
<column xsi:type="int" name="severity" padding="11" unsigned="true" nullable="false" identity="false" comment="Severity"/>
<column xsi:type="varchar" name="identifier_label" nullable="true" length="20" comment="Identifier Label"/>
<column xsi:type="varchar" name="identifier_value" nullable="true" length="50" comment="Identifier Value"/>
<column xsi:type="timestamp" name="timestamp" nullable="false" default="CURRENT_TIMESTAMP" comment="Timestamp"/>
<column xsi:type="timestamp" name="timestamp" nullable="false" comment="Timestamp"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure here, it will not work if someone chooses to use default sync implementation. BTW I don't see any code for queues, so what is the point of this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants