core: turn log to be static

This was reported by coverity

Change-Id: Id8938bd715a4a2867d30d2f6e3df1f2bfdd9194a
Signed-off-by: Yair Zaslavsky <yzaslavs@redhat.com>