summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhirura <hirura@gmail.com>2020-01-11 22:38:11 +0900
committerhirura <hirura@gmail.com>2020-01-11 22:38:11 +0900
commit0c7d233f6e3c860623d410e1337640d66539980f (patch)
tree4089bdecb66bb0d5fa0e590ba0ade0bbe0e82b22
parent5c31c9dc5f65b151a9195d1d7c307e2f6d155da1 (diff)
downloadnet-ssh-0c7d233f6e3c860623d410e1337640d66539980f.tar.gz
Fix Loggable to use to_s method instead of name method for self.class
-rw-r--r--lib/net/ssh/loggable.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/loggable.rb b/lib/net/ssh/loggable.rb
index 50b26bf..b9df4d5 100644
--- a/lib/net/ssh/loggable.rb
+++ b/lib/net/ssh/loggable.rb
@@ -56,8 +56,8 @@ module Net
# originates. It defaults to the name of class with the object_id
# appended.
def facility
- @facility ||= self.class.name.gsub(/::/, ".").gsub(/([a-z])([A-Z])/, "\\1_\\2").downcase + "[%x]" % object_id
+ @facility ||= self.class.to_s.gsub(/::/, ".").gsub(/([a-z])([A-Z])/, "\\1_\\2").downcase + "[%x]" % object_id
end
end
end
-end \ No newline at end of file
+end