Skip to content

Commit

Permalink
Replace panic with log
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi committed Jan 31, 2024
1 parent 212b9aa commit dc84aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spine/feature_remote.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package spine

import (
"fmt"
"sync"
"time"

Expand Down Expand Up @@ -108,7 +107,8 @@ func (r *FeatureRemote) MaxResponseDelayDuration() time.Duration {
func (r *FeatureRemote) functionData(function model.FunctionType) api.FunctionDataInterface {
fd, found := r.functionDataMap[function]
if !found {
panic(fmt.Errorf("Data was not found for function '%s'", function))
logging.Log().Errorf("Data was not found for function '%s'", function)
return nil
}
return fd
}

0 comments on commit dc84aef

Please sign in to comment.