log: test corectness when used in if statements.
log: test corectness when used in if statements.

Change-Id: I135902c13a021070c8d595ebb623a7c2e4750f2a
Reviewed-on: http://gerrit.aldebaran.lan:8080/12990
Reviewed-by: cgestes <ddb78fe00abb42f91254c16a0860e38eb0781789@aldebaran-robotics.com>
Reviewed-by: mnottale <e3ccf1b6558404e921a21fa09cebb1153b50ec36@aldebaran-robotics.com>
Tested-by: mnottale <e3ccf1b6558404e921a21fa09cebb1153b50ec36@aldebaran-robotics.com>

aldebaran/libqi,vbarbaresi/libqi,aldebaran/libqi,aldebaran/libqi,bsautron/libqi