1
0
mirror of https://github.com/minio/mc.git synced 2025-11-10 13:42:32 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
Harshavardhana
1c3e6516f0 allow trace filters on handler names (#3568)
also convert the filter options to slice flags, for example
if you wish to trace only for status code 404 and 503 then
you would specify the following command

```
mc admin trace --status-code 404 --status-code 503 myminio/
```

Refactor and make implementation more readable.
2021-01-19 02:20:34 -08:00
Anis Elleuch
e7df97d1e0 trace: Add more filters options (#3556)
Filter options are necessary if the server receives a lot of requests,
especially when the verbose mode is passed.
2021-01-04 21:00:48 -08:00
Anis Elleuch
d4fbfb5975 Show better looking help when a wrong flag is passed (#3461) 2020-12-02 22:19:26 -08:00
Harshavardhana
d24de97cde pretty print KMS key status (#3412) 2020-09-23 08:32:57 -07:00
Harshavardhana
b7e4a633d8 rename all 'cannot' messages to 'unable to' (#3388) 2020-09-01 15:40:31 -07:00
Harshavardhana
f9dc22561c fix: mc rb site-wide removal with versioning (#3355) 2020-08-12 14:19:10 -07:00
Harshavardhana
0b0acc611f Revert "cli: Load global flags in initBeforeRunningCmd (#3283)" (#3302)
This reverts commit 712ff33319.
2020-07-16 11:10:35 -07:00
Anis Elleuch
712ff33319 cli: Load global flags in initBeforeRunningCmd (#3283)
app.Before receives a cli.Context but without flags parsed. There is no
point calling ctx.Bool() or ctx.IsSet() at that stage.

However, flags are parsed in commands, so minio initialization and
setting global variables (globalJSON, globalQuiet, etc..) can be moved
to the Before function of all commands.

Avoid setting command.Before for non leaf commands, otherwise Before
function will be called multiples times until it reaches the leaf
command.
2020-07-01 17:28:43 -07:00
Harshavardhana
8cae137525 fix all the build errors 2020-04-03 22:22:20 -07:00
Anis Elleuch
64a78e7811 Add global context and adapt context change in admin API (#3125)
This commit adds a new global context, monitors os signals
and cancels the global context in such cases to exit
on going process gracefully.

It will also update minio-go and adapts the code with
the new context changes in the admin API.
2020-03-21 13:42:41 -07:00
Harshavardhana
9663319e9e Update mc dependencies to recent dep change on MinIO (#3026) 2019-12-31 11:27:59 -08:00
Nitish Tiwari
f6240587db Fix arrow signs to use more common U+2191 & U+2193 (#2942) 2019-10-27 20:55:36 -07:00
poornas
0f8345b207 trace - Add TimeToFirstByte to output in --json mode (#2904) 2019-10-09 01:25:54 +05:30
ebozduman
a9c606f119 Customize service help for Windows/Linux users (#2908) 2019-09-28 08:33:28 +05:30
Harshavardhana
54ee3a2800 Migrate to go1.13 (#2888) 2019-09-09 02:54:43 +05:30
Harshavardhana
5fc35b6682 Fix admin help messages and docs (#2884) 2019-09-06 10:07:30 -07:00
Harshavardhana
bd7564a2d4 Add 'mc admin update' command (#2857)
Also this PR deprecates `service status` command
2019-08-28 15:57:25 -07:00
Sidhartha Mani
64d45ac35a fix formatting for admin trace (#2854) 2019-08-16 16:57:40 -07:00
Harshavardhana
0f360131cb Remove runtime checks use go build tag (#2848)
Project can be only built with go1.12 or newer
other build related changes to use new go1.12
features.

Fixes #2815
2019-08-06 15:41:04 -07:00
poornas
b56e297be0 fix admin trace crash on 32 bit systems (#2847) 2019-07-31 17:06:42 -07:00
poornas
67dbada736 Minor changes to admin trace output fmt (#2834) 2019-07-23 17:31:31 -07:00
poornas
c727be5a48 Add error filter flag to mc admin trace command (#2824) 2019-07-21 06:30:33 +01:00
poornas
74a7c3dc9a Show call stats in admin trace command (#2823)
- Add call latency, input and output bytes to trace
2019-07-19 02:20:08 +01:00
Harshavardhana
ab3e70ae9f Fix escape characters in trace command (#2822) 2019-07-13 09:07:34 +05:30
poornas
675618574a Change short trace message display format (#2798)
to abridge function name,time format and
add client ip in the output
2019-06-24 15:43:23 -07:00
Harshavardhana
d97cfaa55d Fix trace formatting (#2805) 2019-06-19 15:11:03 -07:00
poornas
ca26dac8e2 Add mc admin trace command. (#2655) 2019-06-11 16:25:33 -07:00