Modified api for panic

This commit is contained in:
andronache98
2021-12-20 16:27:40 +02:00
committed by Dan Christian Bogos
parent fa121eb28b
commit 767bcc9a96

View File

@@ -96,6 +96,12 @@ func (cS *CoreSv1) StopMemoryProfiling(_ *utils.TenantWithAPIOpts, reply *string
return nil
}
func (cS *CoreSv1) Panic(args *string, _ *string) error {
panic(*args)
type PanicMsgWithTenantAPIOpts struct {
Tenant string
APIOpts map[string]interface{}
Msg string
}
func (cS *CoreSv1) Panic(args *PanicMsgWithTenantAPIOpts, _ *string) error {
panic(utils.ToJSON(args))
}