summaryrefslogtreecommitdiffhomepage
path: root/internal/logging
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-13 06:51:28 -0500
committeradamdottv <[email protected]>2025-05-13 06:51:28 -0500
commit0c21ca531856c2f73da0b27ce215dab8385a9ef5 (patch)
tree8e4cd4117ce9c294437872f5170763aa2fb1519f /internal/logging
parent0117c72a2c3f5a91516d5d8158560637b4a16a4c (diff)
downloadopencode-0c21ca531856c2f73da0b27ce215dab8385a9ef5.tar.gz
opencode-0c21ca531856c2f73da0b27ce215dab8385a9ef5.zip
chore: cleanup
Diffstat (limited to 'internal/logging')
-rw-r--r--internal/logging/logging.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/logging/logging.go b/internal/logging/logging.go
index 54f33989f..df9eaa923 100644
--- a/internal/logging/logging.go
+++ b/internal/logging/logging.go
@@ -95,11 +95,11 @@ func (s *service) Create(ctx context.Context, log Log) error {
err := s.db.CreateLog(ctx, db.CreateLogParams{
ID: log.ID,
SessionID: sql.NullString{String: log.SessionID, Valid: log.SessionID != ""},
- Timestamp: log.Timestamp / 1000,
+ Timestamp: log.Timestamp,
Level: log.Level,
Message: log.Message,
Attributes: attributesJSON,
- CreatedAt: log.CreatedAt / 1000,
+ CreatedAt: log.CreatedAt,
})
if err != nil {
return fmt.Errorf("db.CreateLog: %w", err)