fixed crash when logging was deactivated; fix consists of a few if(log_message) checks
fixed crash when logging was deactivated; fix consists of a few if(log_message) checks

RoutingKit/RoutingKit,RoutingKit/RoutingKit,RoutingKit/RoutingKit