From 7e9e5da42587e10586aba56b960eabab9f5a2b21 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 16 Aug 2008 12:20:02 -0700 Subject: [PATCH] switch from htmllog to use append_action_to_log in process --- scripts/process | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/process b/scripts/process index 197ae8d..8e4a0f8 100755 --- a/scripts/process +++ b/scripts/process @@ -28,6 +28,8 @@ use Debbugs::Text qw(:templates); use Debbugs::Status qw(:versions); use Debbugs::Config qw(:globals :config); +use Debbugs::Control qw(append_action_to_log); + chdir( "$gSpoolDir" ) || die "chdir spool: $!\n"; #open(DEBUG,"> /tmp/debbugs.debug"); @@ -916,16 +918,14 @@ die "wot no exit"; sub htmllog { my ($whatobj,$whatverb,$where,$desc) = @_; - my $hash = get_hashname($ref); - open(AP,">>db-h/$hash/$ref.log") || die "opening db-h/$hash/$ref.log (lh): $!"; - print(AP - "\6\n". - "$whatobj $whatverb". - ($where eq '' ? "" : " to ".html_escape($where).""). - ":
\n". $desc. - "\n\3\n") || die "writing db-h/$hash/$ref.log (lh): $!"; - close(AP) || die "closing db-h/$hash/$ref.log (lh): $!"; -} + append_action_to_log(bug => $ref, + action => "$whatobj $whatverb", + requester => '', + request_addr => $where, + desc => $desc, + get_lock => 0, + ); +} sub stripbccs { my $msg = shift; -- 2.39.2