mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-09-22 06:46:34 +08:00
Truncate payload printed in the UI
Added a flag --max-payload-length to allow customizing the value
This commit is contained in:
@@ -88,7 +88,7 @@ var staticContents embed.FS
|
||||
func muxRouter(opts Options, rc redis.UniversalClient, inspector *asynq.Inspector) *mux.Router {
|
||||
router := mux.NewRouter().PathPrefix(opts.RootPath).Subrouter()
|
||||
|
||||
var pf PayloadFormatter = defaultPayloadFormatter
|
||||
var pf PayloadFormatter = DefaultPayloadFormatter
|
||||
if opts.PayloadFormatter != nil {
|
||||
pf = opts.PayloadFormatter
|
||||
}
|
||||
|
Reference in New Issue
Block a user