From 97b5e722967ef293ef456b0ce54473102206a444 Mon Sep 17 00:00:00 2001 From: andronache98 Date: Mon, 20 Dec 2021 16:48:34 +0200 Subject: [PATCH] Finished api for panic in coresv1 --- apier/v1/core.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apier/v1/core.go b/apier/v1/core.go index 7b760deed..7baa8a1d7 100644 --- a/apier/v1/core.go +++ b/apier/v1/core.go @@ -19,7 +19,6 @@ along with this program. If not, see package v1 import ( - "fmt" "path" "time" @@ -97,12 +96,12 @@ func (cS *CoreSv1) StopMemoryProfiling(_ *utils.TenantWithAPIOpts, reply *string return nil } -type PanicMsgWithTenantAPIOpts struct { +type PanicMessageArgs struct { Tenant string APIOpts map[string]interface{} - Msg string + Message string } -func (cS *CoreSv1) Panic(args *PanicMsgWithTenantAPIOpts, _ *string) error { - panic(fmt.Sprintf("Panic Message:<%s>,Tenant:<%s>,APIOpts:<%s>", args.Msg, args.Tenant, args.APIOpts)) +func (cS *CoreSv1) Panic(args *PanicMessageArgs, _ *string) error { + panic(args.Message) }