Closed hanzei closed 7 months ago
I've been thinking about adding a mmctl logs watch
command. If we want to do that, where would be shared code life?
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
eef27c8
) 5.26% compared to head (cfb38d8
) 5.26%. Report is 3 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
LGTM, @hanzei do you have any remaining major concerns?
@mickmister I think you meant to ping @lieut-data, right?
Summary
To make it easier for plugin developers to get the log of the plugin that they are developing, this PR add two new Make target:
make logs
fetches the latest 500 log messages from the MM server. This is useful for figuring out existing issues with the plugin. I'm 0/5 of the concrete numbers. Maybe the command should show the latest 100 messages from the plugin instead of filtering 500 general ones.make logs-watch
is the development-focused target. It continually fetches logs from Mattermost and prints only new ones to stdout. It's meant to be run in a separate terminal while developing the plugin.Screencast from 18.12.2023 12:37:35.webm
Ticket Link
NONE