Issue with custom log driver

Hi, i’m working on custom log driver, which will log all of the containers output to a Influxdb server.
Here is my project https://github.com/donaldinos/docker-influxdb-log-driver

I can build and install log plugin into docker without any problem.

But when i try it use in a image to example:
docker run --log-driver docker-influxdb-log-driver:1.0.2 --log-opt db-server=localhost --log-opt db-server=8086 --log-opt db-database=logger --log-opt db-table=logs alpine date

i get this message:

docker: Error response from daemon: failed to initialize logging driver: error creating logger: LogDriver.StartLogging: EOF.
ERRO[0001] error waiting for container: context canceled

Exist some way, how can i debug this issue ? What it means and why this happen ?