Skip to content

Commit

Permalink
Return default sample rate, on error (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
praves77 authored Sep 21, 2022
1 parent f4e426b commit 12bd51f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions moesifasgi/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ def get_sampling_percentage(cls, config, user_id, company_id):
except Exception as e:
print("Error while parsing user or company sample rate")
print(e)
else:
return 100

# Use default
return 100

0 comments on commit 12bd51f

Please sign in to comment.