Skip to content

Commit e17f697

Browse files
authored
chore: add invalid license log notification. (#3614)
1 parent 026da08 commit e17f697

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/controllers/concerns/avo/initializes_avo.rb

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ def init_app
77
Avo::Current.view_context = view_context
88
Avo.init
99
Avo::Current.license = Licensing::LicenseManager.new(Licensing::HQ.new(request).response).license
10+
11+
# Output a warning in the logs if the license is invalid
12+
if Avo::Current.license.invalid?
13+
Avo.logger.debug "Your Avo license looks invalid. Please troubleshoot it using the directions here: https://docs.avohq.io/3.0/license-troubleshooting.html"
14+
end
15+
1016
Avo::Current.locale = locale
1117
end
1218

0 commit comments

Comments
 (0)