summaryrefslogtreecommitdiff
path: root/lib/VNWeb
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-12-25 13:40:27 +0100
committerYorhel <git@yorhel.nl>2020-12-25 13:40:29 +0100
commitf18a9815d079620820df3e22b631f306b3181c4d (patch)
tree51aed38593e9bb39aaa52fdee7ac93b1f40b649f /lib/VNWeb
parent26475e5c7b81d25f6046e9a68b82f8dc3c3280fd (diff)
Fix trying to get user id when logging during initialization
(We never log during initialization... yet)
Diffstat (limited to 'lib/VNWeb')
-rw-r--r--lib/VNWeb/Auth.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Auth.pm b/lib/VNWeb/Auth.pm
index 9707108f..fd006886 100644
--- a/lib/VNWeb/Auth.pm
+++ b/lib/VNWeb/Auth.pm
@@ -52,7 +52,7 @@ sub auth {
# have a lot of influence in this)
TUWF::set log_format => sub {
my(undef, $uri, $msg) = @_;
- sprintf "[%s] %s %s: %s\n", scalar localtime(), $uri, auth ? 'u'.auth->uid : '-', $msg;
+ sprintf "[%s] %s %s: %s\n", scalar localtime(), $uri, tuwf->req && auth ? 'u'.auth->uid : '-', $msg;
};