[aur-dev] [PATCH] Add a logging function and logging fixins through the code
Sebastian Nowicki
sebnow at gmail.com
Wed Jul 1 13:31:34 EDT 2009
On Jul 1, 2009, at 7:27 PM, Callan Barrett wrote:
> Signed-off-by: Callan Barrett <wizzomafizzo at gmail.com>
> ---
> web/html/pkgsubmit.php | 2 ++
> web/lib/acctfuncs.inc | 2 ++
> web/lib/aur.inc | 36 ++++++++++++++++++++++++++++
> ++++++++
> web/lib/config.inc.proto | 2 ++
> web/lib/pkgfuncs.inc | 8 ++++++++
> web/template/pkg_comment_form.php | 2 ++
> 6 files changed, 52 insertions(+), 0 deletions(-)
>
> diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
> index a3394af..04c1542 100644
> --- a/web/html/pkgsubmit.php
> +++ b/web/html/pkgsubmit.php
> @@ -369,6 +369,7 @@ if ($_COOKIE["AURSID"]):
> }
> }
>
> + if (LOGGING) { logit(2, username_from_sid($_COOKIE['AURSID']),
>
Might be easier to just put the "if(LOGGING) {}" into the logit()
function itself, assuming this is the desired behavior for all
instances of logging.
More information about the aur-dev
mailing list