oncall-engine/engine/engine
Joey Orlando e69062cd73
update engine log format + log out device type when sending push notifications (#2021)
# What this PR does

- update engine log format to include `org_slug` + `user_agent`
```bash
2023-05-25 11:28:22 source=engine:app google_trace_id=none logger=root inbound latency=0.33164 status=200 method=GET path=/api/internal/v1/alertgroups/stats user_agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 content-length=0 slow=0 user_id=1 org_id=1 org_slug=self_hosted_org
2023-05-25 11:28:23 source=engine:app google_trace_id=none logger=root inbound latency=0.402866 status=200 method=GET path=/api/internal/v1/alertgroups user_agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36 content-length=0 slow=0 user_id=1 org_id=1 org_slug=self_hosted_org
```
- log out device type when sending push notifications ([possible values
are `web`, `ios`, or
`android`](https://github.com/xtrinch/fcm-django/blob/master/fcm_django/models.py#L264-L266))

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated (N/A)
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required) (N/A)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required) (N/A)
2023-05-25 07:49:12 -04:00
..
logging World, meet OnCall! 2022-06-03 08:09:47 -06:00
management/commands Phone provider refactoring (#1713) 2023-05-24 06:27:48 +00:00
tests add the ability to set/display "currently undergoing maintenance message" in the UI (#1917) 2023-05-12 15:44:09 +00:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
celery.py Fix SQLite permission issue (#1984) 2023-05-22 19:16:31 +00:00
middlewares.py update engine log format + log out device type when sending push notifications (#2021) 2023-05-25 07:49:12 -04:00
parsers.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
urls.py add the ability to set/display "currently undergoing maintenance message" in the UI (#1917) 2023-05-12 15:44:09 +00:00
views.py add the ability to set/display "currently undergoing maintenance message" in the UI (#1917) 2023-05-12 15:44:09 +00:00
wsgi.py Update wsgi.py 2023-03-28 13:11:22 +08:00