remove unused function addFnToLogString