This repository has been archived by the owner on Jun 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(FACT-2617) Fix for tests/external_facts/external_fact_stderr_message…
…s_output_to_stderr.rb (#522) * (FACT-2617) If a logger is provided, use it for all log levels. * (FACT-2617) Fix tests. * (FACT-2617) Revert logger to implementation without send as it interferes with Kernel :warn * (FACT-2617) Remove multi logger. * (FACT-2617) Se default log level on default logger. * (FACT-2617) Set logger to nil before it is initialised. * (FACT-2617) Fix acceptance tests. * (FACT-2617) Set log level to default when initialising default logger. * (FACT-2617) Only set default log level if the logger was uninitialised. * (FACT-2617) Fix rubocop. * (FACT-2617) Make colorize method private.
- Loading branch information
Bogdan Irimie
authored
May 20, 2020
1 parent
a8bc991
commit 2f066bd
Showing
9 changed files
with
85 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
class LoggerHelper | ||
class << self | ||
def determine_callers_name(sender_self) | ||
class_name = case sender_self | ||
when String | ||
sender_self | ||
when Class | ||
sender_self.name | ||
when Module | ||
sender_self.name | ||
else # when class is singleton | ||
sender_self.class.name | ||
end | ||
class_name | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.