mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-25 16:03:48 +00:00
18 lines
364 B
Ruby
18 lines
364 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module GrapeLogging
|
|
module Loggers
|
|
class TokenLogger < ::GrapeLogging::Loggers::Base
|
|
def parameters(_request, _)
|
|
params = ::Current.token_info
|
|
|
|
return {} unless params
|
|
|
|
params.slice(:token_type, :token_id, :token_application_id)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|