Skip to content

Commit

Permalink
Merge pull request #4 from WeareJH/feature/JH-3-jh-logger-fix-timesta…
Browse files Browse the repository at this point in the history
…mp-issue

JH-3 modify timestamp value for the Logger module
  • Loading branch information
bartoszkubicki committed Dec 15, 2022
2 parents 9e3a08c + 076ee9a commit de79c23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Service/LoggerManagement.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public function addEvent(
$log->setSeverity($severity);
$log->setIdentifierLabel($identifierLabel);
$log->setIdentifierValue($identifierValue);
$log->setTimestamp(strtotime(time()));
$this->logRepository->save($log);
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" comment="Timestamp"/>
<column xsi:type="timestamp" name="timestamp" nullable="false" default="CURRENT_TIMESTAMP" comment="Timestamp"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="logger_id"/>
</constraint>
Expand All @@ -19,7 +19,7 @@
<table name="jh_logging_issue" resource="default" engine="innodb" comment="Jh Logging Issue">
<column xsi:type="int" name="issue_id" padding="11" unsigned="true" nullable="false" identity="true" comment="Issue Id"/>
<column xsi:type="varchar" name="type" nullable="false" length="50" comment="Type"/>
<column xsi:type="timestamp" name="timestamp" nullable="false" comment="Timestamp"/>
<column xsi:type="timestamp" name="timestamp" nullable="false" default="CURRENT_TIMESTAMP" comment="Timestamp"/>
<column xsi:type="smallint" name="is_active" padding="11" unsigned="true" nullable="false" identity="false" comment="Is Active"/>
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="issue_id"/>
Expand Down

0 comments on commit de79c23

Please sign in to comment.