diff options
author | Anton Tananaev <anton@traccar.org> | 2024-04-08 07:39:40 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-04-08 07:39:40 -0700 |
commit | b017ab22e2f612aa19d0bd62581b6e889a142dfa (patch) | |
tree | eb88fe0281955674b90863af4167011c4cd47cba /src/main/java/org/traccar/schedule | |
parent | 569bb18dcd0d8bbde92b5efdbbb21bc02d6e90ae (diff) | |
download | trackermap-server-b017ab22e2f612aa19d0bd62581b6e889a142dfa.tar.gz trackermap-server-b017ab22e2f612aa19d0bd62581b6e889a142dfa.tar.bz2 trackermap-server-b017ab22e2f612aa19d0bd62581b6e889a142dfa.zip |
Add scheduled reports logging
Diffstat (limited to 'src/main/java/org/traccar/schedule')
-rw-r--r-- | src/main/java/org/traccar/schedule/TaskReports.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/schedule/TaskReports.java b/src/main/java/org/traccar/schedule/TaskReports.java index e0fa6f8d6..2102b2ee1 100644 --- a/src/main/java/org/traccar/schedule/TaskReports.java +++ b/src/main/java/org/traccar/schedule/TaskReports.java @@ -1,5 +1,5 @@ /* - * Copyright 2023 Anton Tananaev (anton@traccar.org) + * Copyright 2023 - 2024 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import com.google.inject.servlet.ServletScopes; import net.fortuna.ical4j.model.Period; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.traccar.helper.LogAction; import org.traccar.model.BaseModel; import org.traccar.model.Calendar; import org.traccar.model.Device; @@ -110,6 +111,7 @@ public class TaskReports implements ScheduleTask { ReportMailer reportMailer = injector.getInstance(ReportMailer.class); for (User user : users) { + LogAction.logReport(user.getId(), true, report.getType(), from, to, deviceIds, groupIds); switch (report.getType()) { case "events": var eventsReportProvider = injector.getInstance(EventsReportProvider.class); |