fix logging (add logging message to get stacktrace)