@@ -276,8 +276,7 @@ do_backup_database(parray *backup_list)
276276char dirpath [MAXPGPATH ];
277277char * dir_name = GetRelativePath (file -> path ,pgdata );
278278
279- if (verbose )
280- elog (LOG ,"Create directory \"%s\"" ,dir_name );
279+ elog (LOG ,"Create directory \"%s\"" ,dir_name );
281280
282281join_path_components (dirpath ,database_path ,dir_name );
283282dir_create_dir (dirpath ,DIR_PERMISSION );
@@ -305,8 +304,7 @@ do_backup_database(parray *backup_list)
305304/* Run threads */
306305for (i = 0 ;i < num_threads ;i ++ )
307306{
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 ));
310308pthread_create (& backup_threads [i ],NULL , (void * (* )(void * ))backup_files ,backup_threads_args [i ]);
311309}
312310
@@ -1157,9 +1155,8 @@ backup_files(void *arg)
11571155if (prev_file && false)
11581156{
11591157file -> 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 );
11631160continue ;
11641161}
11651162}
@@ -1554,10 +1551,9 @@ stop_streaming(XLogRecPtr xlogpos, uint32 timeline, bool segment_finished)
15541551static XLogRecPtr prevpos = InvalidXLogRecPtr ;
15551552
15561553/* 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 );
15611557
15621558/*
15631559 * 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)
15681564 * timeline, but it's close enough for reporting purposes.
15691565 */
15701566if (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 );
15741569
15751570if (stop_backup_lsn != InvalidXLogRecPtr && xlogpos > stop_backup_lsn )
15761571return true;
@@ -1637,11 +1632,8 @@ StreamLog(void *arg)
16371632/*
16381633 * Start the replication
16391634 */
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 );
16451637
16461638#if PG_VERSION_NUM >=90600
16471639{