From 8aa5907e1b594c63c7598dc400b8e16922e73b4c Mon Sep 17 00:00:00 2001
From: Evgenii Stratonikov <e.stratonikov@yadro.com>
Date: Mon, 29 May 2023 14:05:29 +0300
Subject: [PATCH] [#409] node: Log maintenance state on startup

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
---
 cmd/frostfs-node/netmap.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmd/frostfs-node/netmap.go b/cmd/frostfs-node/netmap.go
index d9b1c9208..8c5f513b8 100644
--- a/cmd/frostfs-node/netmap.go
+++ b/cmd/frostfs-node/netmap.go
@@ -295,6 +295,8 @@ func initNetmapState(c *cfg) {
 			stateWord = "online"
 		case ni.IsOffline():
 			stateWord = "offline"
+		case ni.IsMaintenance():
+			stateWord = "maintenance"
 		}
 	}