diff --git a/client/ovpncli.cpp b/client/ovpncli.cpp index 6e2af737..92f1de61 100644 --- a/client/ovpncli.cpp +++ b/client/ovpncli.cpp @@ -89,7 +89,9 @@ #define USE_TUN_BUILDER #endif +#ifndef OPENVPN_LOG #include // should be included early +#endif #include #include @@ -574,7 +576,9 @@ namespace openvpn { OPENVPN_CLIENT_EXPORT Status OpenVPNClient::connect() { boost::asio::detail::signal_blocker signal_blocker; // signals should be handled by parent thread +#ifdef OPENVPN_LOG_LOGTHREAD_H Log::Context log_context(this); +#endif Status ret; bool in_run = false; ScopedPtr io_service;