diff options
author | sunnavy <sunnavy@bestpractical.com> | 2022-10-29 00:58:46 +0300 |
---|---|---|
committer | sunnavy <sunnavy@bestpractical.com> | 2022-10-29 00:58:46 +0300 |
commit | dfd34418d3ead39d0bd8bdfc740e540ffc302dee (patch) | |
tree | d4a8c57a919b27b3be01f75a406db2fa0f70f679 | |
parent | d740e2ca83ebef758296a5725a359ecf1fc75f65 (diff) | |
parent | 5bab1ebbcb38d4b8b9069e4e64e83a9d51ca76c2 (diff) |
Merge branch '5.0/log-sql-even-without-currentuser' into 5.0-trunk
-rw-r--r-- | lib/RT/Interface/Web.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm index 51c6d2fca8..da6382ec27 100644 --- a/lib/RT/Interface/Web.pm +++ b/lib/RT/Interface/Web.pm @@ -1409,7 +1409,7 @@ sub LogRecordedSQLStatements { } $RT::Logger->log( level => $log_sql_statements, - message => ($HTML::Mason::Commands::session{'CurrentUser'}->Name // '') + message => ($HTML::Mason::Commands::session{'CurrentUser'} ? $HTML::Mason::Commands::session{'CurrentUser'}->Name : '') . " - " . "SQL(" . sprintf( "%.6f", $duration ) |