Commits

Ville Suoranta authored 13a9eb49239
Remove extra output from CrashReporter.cc

code/stdcasa/StdCasa/CrashReporter.cc

Modified
286 286 // Replace a string of contiguous spaces (should be one of these) with
287 287 // a "slash".
288 288
289 289 std::regex spaces (" +");
290 290 exePath = regex_replace (exePath, spaces, "/");
291 291
292 292 // Is the exePath doesn't exist, try removing the tail f.e. "linux"
293 293 // Tail is only useful for developer builds
294 294 struct stat info;
295 295 if( stat( exePath.c_str(), &info ) != 0 ) {
296 - //printf( "cannot access %s\n", exePath.c_str() );
297 296 const char *tail = std::strrchr(exePath.c_str() , '/');
298 - //std::cout << "Tail: " << tail << "\n";
299 297 size_t pos = exePath.find(tail);
300 298 exePath = exePath.replace(pos, exePath.size(),"");
301 - //std::cout << "exePath: " << exePath << "\n";
302 299 }
303 300 exePath += "/bin/bogusExe";
304 301
305 302 }
306 303
307 304 // Extract the path portion of the file spec.
308 305
309 306 std::cmatch match;
310 307 std::string binPath;
311 308 std::regex re ("(.*/)[^/]*$"); // Match everything through the last slash

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut