Bugzilla – Attachment 138244 Details for
Bug 30984
Action logs should log the cronjob script name that generated the given log
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30984: (QA follow-up) Ternary formatting style
Bug-30984-QA-follow-up-Ternary-formatting-style.patch (text/plain), 1.01 KB, created by
Marcel de Rooy
on 2022-07-29 06:42:03 UTC
(
hide
)
Description:
Bug 30984: (QA follow-up) Ternary formatting style
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-07-29 06:42:03 UTC
Size:
1.01 KB
patch
obsolete
>From b71b740e7480acfd2750147f788f6e54584f99f9 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 29 Jul 2022 06:39:21 +0000 >Subject: [PATCH] Bug 30984: (QA follow-up) Ternary formatting style >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Log.pm | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > >diff --git a/C4/Log.pm b/C4/Log.pm >index b38fb9c163..05a81f1a26 100644 >--- a/C4/Log.pm >+++ b/C4/Log.pm >@@ -90,10 +90,9 @@ sub logaction { > } > } > >- my $script = >- $interface eq 'cron' ? basename($0) >- : $interface eq 'commandline' ? basename($0) >- : undef; >+ my $script = ( $interface eq 'cron' or $interface eq 'commandline' ) >+ ? basename($0) >+ : undef; > > my $dbh = C4::Context->dbh; > my $sth=$dbh->prepare("Insert into action_logs (timestamp,user,module,action,object,info,interface,script) values (now(),?,?,?,?,?,?,?)"); >-- >2.20.1
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
|
Splinter Review
Attachments on
bug 30984
:
136252
|
136288
|
138243
| 138244 |
138294
|
138295