Commit 77e33ff
committed
main: log self-pod name only if exists
When running under k8s (via samba-operator), the pod's name is populated
via SAMBA_POD_NAME env variable. However, when running as stand-alone
application it may not be set; avoid confusing logging when this is the
case.
Signed-off-by: Shachar Sharon <[email protected]>1 parent df1c424 commit 77e33ff
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
0 commit comments