summary refs log tree commit diff
path: root/nixos/modules/services/web-servers/minio.nix
diff options
context:
space:
mode:
authorHamish Mackenzie <Hamish.K.Mackenzie@googlemail.com>2018-06-08 11:22:00 +1200
committerGitHub <noreply@github.com>2018-06-08 11:22:00 +1200
commit0e5c971af8d4f455498b31dc5cfeb3f780924650 (patch)
tree1f4ad111b5e521f79959f3dc56e86ddb54756ab1 /nixos/modules/services/web-servers/minio.nix
parentff5cecf821082ca7fbf14a795c568bace0cb8e5d (diff)
downloadnixpkgs-0e5c971af8d4f455498b31dc5cfeb3f780924650.tar
nixpkgs-0e5c971af8d4f455498b31dc5cfeb3f780924650.tar.gz
nixpkgs-0e5c971af8d4f455498b31dc5cfeb3f780924650.tar.bz2
nixpkgs-0e5c971af8d4f455498b31dc5cfeb3f780924650.tar.lz
nixpkgs-0e5c971af8d4f455498b31dc5cfeb3f780924650.tar.xz
nixpkgs-0e5c971af8d4f455498b31dc5cfeb3f780924650.tar.zst
nixpkgs-0e5c971af8d4f455498b31dc5cfeb3f780924650.zip
minio: Output server logs & startup in json format
Currently minio logs with enhanced tty data and journalctl does not include anything useful as a result:

```
Jun 08 11:03:28 alpha minio[17813]: [78B blob data]
Jun 08 11:03:28 alpha minio[17813]: [49B blob data]
Jun 08 11:03:28 alpha minio[17813]: [19B blob data]
Jun 08 11:03:28 alpha minio[17813]: [88B blob data]
Jun 08 11:03:28 alpha minio[17813]: [45B blob data]
Jun 08 11:03:28 alpha minio[17813]: [44B blob data]
Jun 08 11:03:28 alpha minio[17813]: [57B blob data]
```

Indicating that it detected some binary output.  With the `--json` flag it logs:

```
Jun 08 11:14:58 alpha minio[18573]: {"level":"FATAL","time":"2018-06-07T23:14:58.770637778Z","error":{"message":"--address input is invalid: address 127.0.0.1: missing port in address","source":["/build/go/src/github.com/minio/minio/cmd/server-main.go:121:cmd.serverHandleCmdArgs()"]}}
```
Diffstat (limited to 'nixos/modules/services/web-servers/minio.nix')
-rw-r--r--nixos/modules/services/web-servers/minio.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/web-servers/minio.nix b/nixos/modules/services/web-servers/minio.nix
index 843f0d98687..7ead33483ea 100644
--- a/nixos/modules/services/web-servers/minio.nix
+++ b/nixos/modules/services/web-servers/minio.nix
@@ -85,7 +85,7 @@ in
       '';
       serviceConfig = {
         PermissionsStartOnly = true;
-        ExecStart = "${cfg.package}/bin/minio server --address ${cfg.listenAddress} --config-dir=${cfg.configDir} ${cfg.dataDir}";
+        ExecStart = "${cfg.package}/bin/minio server --json --address ${cfg.listenAddress} --config-dir=${cfg.configDir} ${cfg.dataDir}";
         Type = "simple";
         User = "minio";
         Group = "minio";