Skip to content

Commit 2678321

Browse files
committed
Switched FATAL log to WARN in OscMessage
1 parent 87d9beb commit 2678321

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/osc/OscMessage.hpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
/*
55
This file was copied from https://github.com/The-Modular-Mind/oscelot
6+
7+
Modifications:
8+
9+
Downgraded FATAL logging to WARN level
610
*/
711

812
namespace TheModularMind {
@@ -26,7 +30,8 @@ class OscMessage {
2630
remotePort = oscMessage.remotePort;
2731

2832
for (std::size_t i = 0; i < oscMessage.args.size(); ++i) {
29-
switch (oscMessage.getArgType(i)) {
33+
osc::TypeTagValues argType = oscMessage.getArgType(i);
34+
switch (argType) {
3035
case osc::INT32_TYPE_TAG:
3136
args.push_back(new OscArgInt32(oscMessage.getArgAsInt(i)));
3237
break;
@@ -37,7 +42,7 @@ class OscMessage {
3742
args.push_back(new OscArgString(oscMessage.getArgAsString(i)));
3843
break;
3944
default:
40-
FATAL("OscMessage copy(): bad/unimplemented argument type %i", oscMessage.getArgType(i));
45+
WARN("OscMessage copy(): bad/unimplemented argument type %i", argType);
4146
break;
4247
}
4348
}
@@ -61,7 +66,6 @@ class OscMessage {
6166

6267
osc::TypeTagValues getArgType(std::size_t index) const {
6368
if (index >= args.size()) {
64-
FATAL("OscMessage.getArgType(): index %d out of bounds", (int)index);
6569
return osc::NIL_TYPE_TAG;
6670
} else {
6771
return args[index]->getType();

0 commit comments

Comments
 (0)