[lib] - small change to logging function