Print the logs on the caller side. This will allow to call the function in another context without printing the logs.