aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Log.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Minz/Log.php')
-rw-r--r--lib/Minz/Log.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Minz/Log.php b/lib/Minz/Log.php
index 43f3c9d6d..117f231ac 100644
--- a/lib/Minz/Log.php
+++ b/lib/Minz/Log.php
@@ -31,14 +31,9 @@ class Minz_Log {
}
if (! ($env === 'silent' || ($env === 'production' && ($level >= LOG_NOTICE)))) {
- $username = Minz_Session::param('currentUser', '');
- if ($username == '') {
- $username = '_';
- }
+ $username = Minz_User::name() ?? Minz_User::INTERNAL_USER;
if ($file_name == null) {
$file_name = join_path(USERS_PATH, $username, LOG_FILENAME);
- } else {
- $username = '_';
}
switch ($level) {