mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
Modified api for panic
This commit is contained in:
committed by
Dan Christian Bogos
parent
fa121eb28b
commit
767bcc9a96
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user