Fixed errors in log macros and module loading
Remove use of to_owned