@@ -229,8 +229,8 @@ XErrorHandler::XErrorHandler() {
229
229
// Oldest log, remove it
230
230
std::filesystem::remove (src_path, error);
231
231
if (error) {
232
- fprintf (stderr, " Error deleting oldest log file: %d %s at %s \n " ,
233
- error.value (), error.message ().c_str (), src_path. c_str () );
232
+ fprintf (stderr, " Error deleting oldest log file: %d %s at %d \n " ,
233
+ error.value (), error.message ().c_str (), i );
234
234
}
235
235
continue ;
236
236
}
@@ -240,14 +240,14 @@ XErrorHandler::XErrorHandler() {
240
240
if (std::filesystem::exists (dst_path)) {
241
241
std::filesystem::remove (dst_path, error);
242
242
if (error) {
243
- fprintf (stderr, " Error deleting log file: %d %s at %s \n " ,
244
- error.value (), error.message ().c_str (), dst_path. c_str () );
243
+ fprintf (stderr, " Error deleting log file: %d %s at %d \n " ,
244
+ error.value (), error.message ().c_str (), i );
245
245
}
246
246
}
247
247
std::filesystem::rename (src_path, dst_path, error);
248
248
if (error) {
249
- fprintf (stderr, " Error renaming log file: %d %s at %s \n " ,
250
- error.value (), error.message ().c_str (), src_path. c_str () );
249
+ fprintf (stderr, " Error renaming log file: %d %s at %d \n " ,
250
+ error.value (), error.message ().c_str (), i );
251
251
}
252
252
}
253
253
0 commit comments