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
142
142
143
143
void rsj::Log (gsl::czstring<> info, const std::source_location& location) noexcept
144
144
{
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);
156
146
}
157
147
158
148
void rsj::Log (gsl::cwzstring<> info, const std::source_location& location) noexcept
159
149
{
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);
170
151
}
171
152
172
153
void rsj::LogAndAlertError (
You can’t perform that action at this time.
0 commit comments