From 5848938f08523cdbccc5caeb837971bcf9cb1693 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 17 Jun 2014 17:01:02 +0200 Subject: [PATCH] Fix log message when setting peer role in the database --- public/vroom.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/vroom.pl b/public/vroom.pl index 3297b12..4bd0dd9 100755 --- a/public/vroom.pl +++ b/public/vroom.pl @@ -286,7 +286,7 @@ helper set_peer_role => sub { return undef if ($sth->rows > 0); $sth = eval { $self->db->prepare("UPDATE `participants` SET `peer_id`=?,`role`=? WHERE `participant`=? AND `id` IN (SELECT `id` FROM `rooms` WHERE `name`=?)") } || return undef; $sth->execute($id,$role,$name,$room) || return undef; - $self->app->log->info("User $id has now the $role role in room $name"); + $self->app->log->info("User $name (peer id $id) has now the $role role in room $room"); return 1; };