Skip to content

Commit b2ecf87

Browse files
author
Matthew Fisher
committed
ref(logger): change flag to --enable-publish
1 parent d7e6412 commit b2ecf87

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

logger/image/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ubuntu-debootstrap:14.04
22

33
ENTRYPOINT ["/bin/logger"]
4-
CMD ["--publish"]
4+
CMD ["--enable-publish"]
55
EXPOSE 514
66

77
ADD . /

logger/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func init() {
2929
flag.StringVar(&logAddr, "log-addr", "0.0.0.0", "bind address for the logger")
3030
flag.IntVar(&logPort, "log-port", 514, "bind port for the logger")
3131
flag.StringVar(&syslogd.LogRoot, "log-root", "/data/logs", "log path to store logs")
32-
flag.BoolVar(&enablePublish, "publish", false, "enable publishing to service discovery")
32+
flag.BoolVar(&enablePublish, "enable-publish", false, "enable publishing to service discovery")
3333
flag.StringVar(&publishHost, "publish-host", getopt("HOST", "127.0.0.1"), "service discovery hostname")
3434
flag.IntVar(&publishInterval, "publish-interval", 10, "publish interval in seconds")
3535
flag.StringVar(&publishPath, "publish-path", getopt("ETCD_PATH", "/deis/logs"), "path to publish host/port information")

logger/tests/logger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func TestLogger(t *testing.T) {
3232
"--rm",
3333
"-p", port+":514/udp",
3434
imageName,
35-
"--publish",
35+
"--enable-publish",
3636
"--log-port="+port,
3737
"--publish-host="+host,
3838
"--publish-port="+etcdPort)

0 commit comments

Comments
 (0)