Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 1f6497e

Browse files
committed
CORTX-33030: Set default log level to INFO
Signed-off-by: pavankrishnat <[email protected]>
1 parent 96abb23 commit 1f6497e

File tree

11 files changed

+89
-89
lines changed

11 files changed

+89
-89
lines changed

hax/hax/bytecount.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _get_pver_with_pver_status(self,
7171
pver_info: PverInfo = motr.get_pver_status(
7272
Fid.parse(p_ver))
7373
pver_items[p_ver] = pver_info
74-
LOG.debug('Received pool version and status: %s', pver_items)
74+
LOG.info('Received pool version and status: %s', pver_items)
7575
return pver_items
7676

7777
def _calculate_bc_per_pver(
@@ -105,13 +105,13 @@ def _calculate_bc_per_pver(
105105
else:
106106
pver_bc[pver_fid] = byte_count
107107

108-
LOG.debug('Bytecount with parity buffer: %s', pver_bc)
108+
LOG.info('Bytecount with parity buffer: %s', pver_bc)
109109

110110
bc_without_parity: Dict[str, int] = {}
111111
for pver, bc in pver_bc.items():
112112
bc_without_parity[pver] = \
113113
bc - self._get_parity_buffers(bc, pver_state[pver])
114-
LOG.debug('Bytecount without parity buffer: %s', bc_without_parity)
114+
LOG.info('Bytecount without parity buffer: %s', bc_without_parity)
115115
return bc_without_parity
116116

117117
def _get_parity_buffers(self, bc: int, state: PverInfo) -> int:
@@ -140,7 +140,7 @@ def _execute(self, motr: Motr):
140140
if status == ObjHealth.OK:
141141
byte_count: ByteCountStats = \
142142
motr.get_proc_bytecount(ios)
143-
LOG.debug('Received bytecount: %s', byte_count)
143+
LOG.info('Received bytecount: %s', byte_count)
144144
if not byte_count:
145145
continue
146146
self.consul.update_pver_bc(byte_count)

hax/hax/filestats.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ def _execute(self, motr: Motr):
5858
stats = motr.get_filesystem_stats()
5959
if not stats:
6060
continue
61-
LOG.debug('FS stats are as follows: %s', stats)
61+
LOG.info('FS stats are as follows: %s', stats)
6262
now_time = datetime.datetime.now()
6363
data = FsStatsWithTime(stats=stats,
6464
timestamp=now_time.timestamp(),
6565
date=now_time.isoformat())
6666
try:
6767
self.consul.update_fs_stats(data)
6868
except HAConsistencyException:
69-
LOG.debug('Failed to update Consul KV '
70-
'due to an intermittent error. The '
71-
'error is swallowed since new attempts '
72-
'will be made timely')
69+
LOG.info('Failed to update Consul KV '
70+
'due to an intermittent error. The '
71+
'error is swallowed since new attempts '
72+
'will be made timely')
7373
wait_for_event(self.event, self.interval_sec)
7474
except InterruptedException:
7575
# No op. _sleep() has interrupted before the timeout exceeded:

hax/hax/ha/message_type/message_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self):
3535
logging.debug('Inside HealthMessage')
3636

3737
def send(self, event, util: ConsulUtil):
38-
logging.debug('Sending HealthMessage: %s', event)
38+
logging.info('Sending HealthMessage: %s', event)
3939
for interface in self.topic_list.items():
4040
sender = interface[1](util)
4141
message_type = interface[0]

hax/hax/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def update_process_failure(self, planner: WorkPlanner, motr: Motr,
253253
# Check if process node is online
254254
proc_node_status: ObjHealth = (
255255
cns.get_proc_node_health(state.fid))
256-
LOG.debug('Process node status: %s', proc_node_status)
256+
LOG.info('Process node status: %s', proc_node_status)
257257
# If process node is online, we assume corresponding
258258
# hax is also online. Let the local hax process it.
259259
if proc_node_status == ObjHealth.OK:

hax/hax/hax.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,16 @@ def _remove_stale_session(util: ConsulUtil) -> None:
113113
if util.is_leader_value_present_for_session():
114114
node = util.get_leader_node()
115115
if re.match(r'^elect[\d]+$', node):
116-
LOG.debug(
116+
LOG.info(
117117
'Stale leader session found: RC leader session %s is '
118118
'found while the leader node seems to be '
119119
'stub: %s', sess, node)
120120
util.destroy_session(sess)
121-
LOG.debug('Stale session %s destroyed '
122-
'to enable RC re-election', sess)
121+
LOG.info('Stale session %s destroyed '
122+
'to enable RC re-election', sess)
123123
else:
124124
util.destroy_session(sess)
125-
LOG.debug('Stale session %s destroyed to enable RC re-election', sess)
125+
LOG.info('Stale session %s destroyed to enable RC re-election', sess)
126126

127127

128128
@log_exception

0 commit comments

Comments
 (0)