remove lager and replace with error log
remove lager