@@ -276,8 +276,7 @@ do_backup_database(parray *backup_list)
276
276
char dirpath [MAXPGPATH ];
277
277
char * dir_name = GetRelativePath (file -> path ,pgdata );
278
278
279
- if (verbose )
280
- elog (LOG ,"Create directory \"%s\"" ,dir_name );
279
+ elog (LOG ,"Create directory \"%s\"" ,dir_name );
281
280
282
281
join_path_components (dirpath ,database_path ,dir_name );
283
282
dir_create_dir (dirpath ,DIR_PERMISSION );
@@ -305,8 +304,7 @@ do_backup_database(parray *backup_list)
305
304
/* Run threads */
306
305
for (i = 0 ;i < num_threads ;i ++ )
307
306
{
308
- if (verbose )
309
- elog (WARNING ,"Start thread num:%li" ,parray_num (backup_threads_args [i ]-> backup_files_list ));
307
+ elog (LOG ,"Start thread num:%li" ,parray_num (backup_threads_args [i ]-> backup_files_list ));
310
308
pthread_create (& backup_threads [i ],NULL , (void * (* )(void * ))backup_files ,backup_threads_args [i ]);
311
309
}
312
310
@@ -1157,9 +1155,8 @@ backup_files(void *arg)
1157
1155
if (prev_file && false)
1158
1156
{
1159
1157
file -> write_size = BYTES_INVALID ;
1160
- if (verbose )
1161
- elog (LOG ,"File \"%s\" has not changed since previous backup" ,
1162
- file -> path );
1158
+ elog (LOG ,"File \"%s\" has not changed since previous backup" ,
1159
+ file -> path );
1163
1160
continue ;
1164
1161
}
1165
1162
}
@@ -1554,10 +1551,9 @@ stop_streaming(XLogRecPtr xlogpos, uint32 timeline, bool segment_finished)
1554
1551
static XLogRecPtr prevpos = InvalidXLogRecPtr ;
1555
1552
1556
1553
/* we assume that we get called once at the end of each segment */
1557
- if (verbose && segment_finished )
1558
- fprintf (stderr ,_ ("%s: finished segment at %X/%X (timeline %u)\n" ),
1559
- PROGRAM_NAME , (uint32 ) (xlogpos >>32 ), (uint32 )xlogpos ,
1560
- timeline );
1554
+ if (segment_finished )
1555
+ elog (LOG ,_ ("finished segment at %X/%X (timeline %u)\n" ),
1556
+ (uint32 ) (xlogpos >>32 ), (uint32 )xlogpos ,timeline );
1561
1557
1562
1558
/*
1563
1559
* Note that we report the previous, not current, position here. After a
@@ -1568,9 +1564,8 @@ stop_streaming(XLogRecPtr xlogpos, uint32 timeline, bool segment_finished)
1568
1564
* timeline, but it's close enough for reporting purposes.
1569
1565
*/
1570
1566
if (prevtimeline != 0 && prevtimeline != timeline )
1571
- fprintf (stderr ,_ ("%s: switched to timeline %u at %X/%X\n" ),
1572
- PROGRAM_NAME ,timeline ,
1573
- (uint32 ) (prevpos >>32 ), (uint32 )prevpos );
1567
+ elog (LOG ,_ ("switched to timeline %u at %X/%X\n" ),
1568
+ timeline , (uint32 ) (prevpos >>32 ), (uint32 )prevpos );
1574
1569
1575
1570
if (stop_backup_lsn != InvalidXLogRecPtr && xlogpos > stop_backup_lsn )
1576
1571
return true;
@@ -1637,11 +1632,8 @@ StreamLog(void *arg)
1637
1632
/*
1638
1633
* Start the replication
1639
1634
*/
1640
- if (verbose )
1641
- fprintf (stderr ,
1642
- _ ("%s: starting log streaming at %X/%X (timeline %u)\n" ),
1643
- PROGRAM_NAME , (uint32 ) (startpos >>32 ), (uint32 )startpos ,
1644
- starttli );
1635
+ elog (LOG ,_ ("starting log streaming at %X/%X (timeline %u)\n" ),
1636
+ (uint32 ) (startpos >>32 ), (uint32 )startpos ,starttli );
1645
1637
1646
1638
#if PG_VERSION_NUM >=90600
1647
1639
{