The test if a directory exists is currently broken on Windows. This leads to the sidecar not creating the parent directory for the configured node-id file if the directory doesn't exist yet.
This PR fixes that by using filepath.Dir instead of path.Dir.
Additionally, logging is improved by adding logging for unsuccessful attempts to write to the node-id file.
The test if a directory exists is currently broken on Windows. This leads to the sidecar not creating the parent directory for the configured node-id file if the directory doesn't exist yet.
This PR fixes that by using
filepath.Dir
instead ofpath.Dir
.Additionally, logging is improved by adding logging for unsuccessful attempts to write to the node-id file.