-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
Change appsignal info method based precense
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,9 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 3.0 | ||
- 3.1 | ||
- 3.2 | ||
- 3.3 | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
module Appsignal | ||
module Sourcemap | ||
class Base | ||
|
||
Check failure on line 6 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L6
Raw output
|
||
private | ||
|
||
def log_appsignal(message, type = 'info') | ||
Check failure on line 9 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L9
Raw output
|
||
log_method = Appsignal.respond_to?('internal_logger') ? 'internal_logger' : 'logger' | ||
Check failure on line 10 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L10
Raw output
Check failure on line 10 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L10
Raw output
Check failure on line 10 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L10
Raw output
Check failure on line 10 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L10
Raw output
|
||
Appsignal.send(log_method).send(type, message) | ||
end | ||
|
||
Check failure on line 13 in lib/appsignal/sourcemap/base.rb GitHub Actions / standardrb[standardrb] lib/appsignal/sourcemap/base.rb#L13
Raw output
|
||
end | ||
end | ||
end | ||