[freeside-commits] branch FREESIDE_4_BRANCH updated. f9dc3d967e8c8d05a151f3035786b14888046d6f

Ivan Kohler ivan at freeside.biz
Tue Apr 17 11:23:26 PDT 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  f9dc3d967e8c8d05a151f3035786b14888046d6f (commit)
      from  a93644139befbadd246c758f433811a2f0e9c2a4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f9dc3d967e8c8d05a151f3035786b14888046d6f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Apr 17 11:23:25 2018 -0700

    log pid in our log, RT#80211

diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm
index 431f125f8..1ee70939e 100644
--- a/FS/FS/Schema.pm
+++ b/FS/FS/Schema.pm
@@ -5909,6 +5909,7 @@ sub tables_hashref {
         'path',           'varchar',     '', 2*$char_d, '', '',
         '_date',                   @date_type,          '', '',
         'render_seconds',     'int', 'NULL',        '', '', '',
+        'pid',                'int', 'NULL',        '', '', '',
       ],
       'primary_key'  => 'lognum',
       'unique'       => [],
diff --git a/FS/FS/access_user_log.pm b/FS/FS/access_user_log.pm
index 026670caf..552dd2ad8 100644
--- a/FS/FS/access_user_log.pm
+++ b/FS/FS/access_user_log.pm
@@ -53,6 +53,10 @@ _date
 
 =back
 
+=item pid
+
+=back
+
 =head1 METHODS
 
 =over 4
@@ -84,6 +88,7 @@ sub insert_new_path {
     'path'           => $path,
     '_date'          => time,
     'render_seconds' => $render_seconds,
+    'pid'            => $$,
   } );
 
   #so we can still log pages after a transaction-aborting SQL error (and then
@@ -127,6 +132,7 @@ sub check {
     || $self->ut_text('path')
     || $self->ut_number('_date')
     || $self->ut_numbern('render_seconds')
+    || $self->ut_numbern('pid')
   ;
   return $error if $error;
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Schema.pm          | 1 +
 FS/FS/access_user_log.pm | 6 ++++++
 2 files changed, 7 insertions(+)




More information about the freeside-commits mailing list