File tree Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Expand file tree Collapse file tree 1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change @@ -142,31 +142,12 @@ void rsj::Log(const juce::String& info, const std::source_location& location) no
142142
143143void rsj::Log (gsl::czstring<> info, const std::source_location& location) noexcept
144144{
145- try {
146- if (juce::Logger::getCurrentLogger ()) {
147- juce::String localname {location.file_name ()};
148- localname = localname.substring (localname.lastIndexOfChar (' \\ ' ) + 1 );
149- juce::Logger::writeToLog (juce::Time::getCurrentTime ().toISO8601 (true ) + ' ' + localname
150- + ' (' + juce::String (location.line ()) + " ) "
151- + juce::String::fromUTF8 (info));
152- }
153- }
154- catch (...) { // -V565 //-V5002
155- }
145+ rsj::Log (juce::String::fromUTF8 (info), location);
156146}
157147
158148void rsj::Log (gsl::cwzstring<> info, const std::source_location& location) noexcept
159149{
160- try {
161- if (juce::Logger::getCurrentLogger ()) {
162- juce::String localname {location.file_name ()};
163- localname = localname.substring (localname.lastIndexOfChar (' \\ ' ) + 1 );
164- juce::Logger::writeToLog (juce::Time::getCurrentTime ().toISO8601 (true ) + ' ' + localname
165- + ' (' + juce::String (location.line ()) + " ) " + info);
166- }
167- }
168- catch (...) { // -V565 //-V5002
169- }
150+ rsj::Log (juce::String (info), location);
170151}
171152
172153void rsj::LogAndAlertError (
You can’t perform that action at this time.
0 commit comments