diff options
| author | Stefan Boberg <[email protected]> | 2023-12-05 08:51:53 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-05 08:51:53 +0100 |
| commit | 0b9d89f5beb889c1785a8f22b586c59bcca0b3ea (patch) | |
| tree | b0359fb51b002b28d9b480813d308cc93c1e220f /src/zenhttp/transports/asiotransport.cpp | |
| parent | 0.2.36-pre3 (diff) | |
| download | zen-0b9d89f5beb889c1785a8f22b586c59bcca0b3ea.tar.xz zen-0b9d89f5beb889c1785a8f22b586c59bcca0b3ea.zip | |
HTTP plugin request debug logging (#587)
* added log level control/query to LoggerRef
* added debug logging to http plugin implementation
* added GetDebugName() to transport plugin interfaces
* added debug name to log output
Diffstat (limited to 'src/zenhttp/transports/asiotransport.cpp')
| -rw-r--r-- | src/zenhttp/transports/asiotransport.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/zenhttp/transports/asiotransport.cpp b/src/zenhttp/transports/asiotransport.cpp index ab053a748..a9a782821 100644 --- a/src/zenhttp/transports/asiotransport.cpp +++ b/src/zenhttp/transports/asiotransport.cpp @@ -34,12 +34,13 @@ public: AsioTransportPlugin(); ~AsioTransportPlugin(); - virtual uint32_t AddRef() const override; - virtual uint32_t Release() const override; - virtual void Configure(const char* OptionTag, const char* OptionValue) override; - virtual void Initialize(TransportServer* ServerInterface) override; - virtual void Shutdown() override; - virtual bool IsAvailable() override; + virtual uint32_t AddRef() const override; + virtual uint32_t Release() const override; + virtual void Configure(const char* OptionTag, const char* OptionValue) override; + virtual void Initialize(TransportServer* ServerInterface) override; + virtual void Shutdown() override; + virtual const char* GetDebugName() override { return nullptr; } + virtual bool IsAvailable() override; private: bool m_IsOk = true; @@ -63,9 +64,10 @@ struct AsioTransportConnection : public TransportConnection, std::enable_shared_ // TransportConnectionInterface - virtual int64_t WriteBytes(const void* Buffer, size_t DataSize) override; - virtual void Shutdown(bool Receive, bool Transmit) override; - virtual void CloseConnection() override; + virtual int64_t WriteBytes(const void* Buffer, size_t DataSize) override; + virtual void Shutdown(bool Receive, bool Transmit) override; + virtual void CloseConnection() override; + virtual const char* GetDebugName() override { return nullptr; } private: void EnqueueRead(); |