Skip to content

Commit caae225

Browse files
committed
Decrease severity of logging the messages
1 parent 21b8da3 commit caae225

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Source/Onix1.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,21 +121,24 @@ std::vector<int> Onix1::getDeviceIndices(device_map_t deviceMap, int hubIndex)
121121
int Onix1::get_opt_(int option, void* value, size_t* size) const
122122
{
123123
int rc = oni_get_opt(ctx_, option, value, size);
124-
if (rc != ONI_ESUCCESS) LOGE(oni_error_str(rc));
124+
if (rc != ONI_ESUCCESS)
125+
LOGE(oni_error_str(rc));
125126
return rc;
126127
}
127128

128129
int Onix1::readRegister(oni_dev_idx_t devIndex, oni_reg_addr_t registerAddress, oni_reg_val_t* value) const
129130
{
130131
int rc = oni_read_reg(ctx_, devIndex, registerAddress, value);
131-
if (rc != ONI_ESUCCESS) LOGE(oni_error_str(rc));
132+
if (rc != ONI_ESUCCESS)
133+
LOGE(oni_error_str(rc));
132134
return rc;
133135
}
134136

135137
int Onix1::writeRegister(oni_dev_idx_t devIndex, oni_reg_addr_t registerAddress, oni_reg_val_t value) const
136138
{
137139
int rc = oni_write_reg(ctx_, devIndex, registerAddress, value);
138-
if (rc != ONI_ESUCCESS) LOGE(oni_error_str(rc));
140+
if (rc != ONI_ESUCCESS)
141+
LOGE(oni_error_str(rc));
139142
return rc;
140143
}
141144

@@ -171,7 +174,7 @@ oni_frame_t* Onix1::readFrame() const
171174

172175
void Onix1::showWarningMessageBoxAsync(std::string title, std::string error_msg)
173176
{
174-
LOGE(error_msg);
177+
LOGD(error_msg);
175178
MessageManager::callAsync([title, error_msg]
176179
{
177180
AlertWindow::showMessageBoxAsync(

0 commit comments

Comments
 (0)