changed log function and modified test_module.py accordingly