Solved by albanD in post #2 
              
              
                Hi, 
This happens because log is only defined for strictly positive inputs. And so we return -inf for all values <= 0 as it is the limit at 0.