log invalid type
Fix logging system