ASF Bugzilla – Attachment 31457 Details for
Bug 56329
split-logfile doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
split-logfile.patch (text/plain), 845 bytes, created by
Holger Mauermann
on 2014-03-28 20:38:16 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Holger Mauermann
Created:
2014-03-28 20:38:16 UTC
Size:
845 bytes
patch
obsolete
>--- /usr/sbin/split-logfile 2014-02-13 13:11:33.000000000 +0100 >+++ split-logfile 2014-03-28 20:27:59.600942795 +0100 >@@ -29,7 +29,7 @@ > use strict; > use warnings; > >-my %is_open = (); >+my %log_file = (); > > while (my $log_line = <STDIN>) { > # >@@ -54,10 +54,9 @@ > # If the log file for this virtual host isn't opened > # yet, do it now. > # >- if (! $is_open{$vhost}) { >- open $vhost, ">>${vhost}.log" >+ if (! $log_file{$vhost}) { >+ open $log_file{$vhost}, ">>${vhost}.log" > or die ("Can't open ${vhost}.log"); >- $is_open{$vhost} = 1; > } > # > # Strip off the first token (which may be null in the >@@ -65,6 +64,6 @@ > # record to the current log file. > # > $log_line =~ s/^\S*\s+//; >- printf $vhost "%s", $log_line; >+ print {$log_file{$vhost}} $log_line; > } > exit 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 56329
: 31457