File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ package main;
88
88
" noprocess" => 0,
89
89
" dbstat" => 0,
90
90
" nodbstat" => 0,
91
+ " server-log" => ' ' ,
91
92
" tbstat" => 0,
92
93
" notbstat" => 0,
93
94
" idxstat" => 0,
@@ -133,6 +134,7 @@ package main;
133
134
' sysstat' , ' nosysstat' ,
134
135
' pfstat' , ' nopfstat' ,
135
136
' idxstat' , ' noidxstat' ,
137
+ ' server-log=s' ,
136
138
)
137
139
or pod2usage(
138
140
-exitval => 1,
@@ -1242,7 +1244,7 @@ sub get_log_file_real_path {
1242
1244
}
1243
1245
1244
1246
sub log_file_recommendations {
1245
- $myvar {' log_error' } =
1247
+ $myvar {' log_error' } = $opt { ' server-log ' } ||
1246
1248
get_log_file_real_path( $myvar {' log_error' }, $myvar {' hostname' },
1247
1249
$myvar {' datadir' } );
1248
1250
@@ -1273,7 +1275,9 @@ sub log_file_recommendations {
1273
1275
goodprint " Log file $myvar {'log_error'} is not empty" ;
1274
1276
}
1275
1277
else {
1276
- badprint " Log file $myvar {'log_error'} is empty" ;
1278
+ infoprint
1279
+ " Log file $myvar {'log_error'} is empty. Assuming log-rotation. Use --server-log={file} for explicit file" ;
1280
+ return ;
1277
1281
}
1278
1282
1279
1283
if ( ( stat $myvar {' log_error' } )[7] < 32 * 1024 * 1024 ) {
@@ -6428,6 +6432,7 @@ =head1 CONNECTION AND AUTHENTICATION
6428
6432
--mysqladmin <path> Path to a custom mysqladmin executable
6429
6433
--mysqlcmd <path> Path to a custom mysql executable
6430
6434
--defaults-file <path> Path to a custom .my.cnf
6435
+ --server-log <path> Path to explict log file
6431
6436
6432
6437
=head1 PERFORMANCE AND REPORTING OPTIONS
6433
6438
You can’t perform that action at this time.
0 commit comments