Skip to content

Commit c8a40ec

Browse files
committed
chore(PubSub): adding docs to fix ci failure
1 parent 63b944a commit c8a40ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

google-cloud-pubsub/lib/google/cloud/pubsub/logger_helper.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ module PubSub
1919
LOG_NAME = "pubsub".freeze
2020
private_constant :LOG_NAME
2121

22+
##
23+
# The logger for the Pub/Sub library.
24+
# @return [Logger]
2225
def self.logger
2326
is_logging_enabled ? configure.logger : Logger.new(nil)
2427
end
2528

29+
##
30+
# Checks if logging is enabled for the Pub/Sub library.
31+
# @return [Boolean]
2632
def self.is_logging_enabled
2733
begin
2834
env_var = ENV["GOOGLE_SDK_RUBY_LOGGING_GEMS"]

0 commit comments

Comments
 (0)