mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
Merge pull request #5749 from jherico/marge
Reduce logging spam in omniTools/magBalls
This commit is contained in:
commit
86aa14a351
1 changed files with 28 additions and 4 deletions
|
@ -96,20 +96,44 @@ mergeObjects = function(proto, custom) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG_WARN = 1;
|
||||||
|
|
||||||
logWarn = function(str) {
|
logWarn = function(str) {
|
||||||
print(str);
|
if (LOG_WARN) {
|
||||||
|
print(str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG_ERROR = 1;
|
||||||
|
|
||||||
logError = function(str) {
|
logError = function(str) {
|
||||||
print(str);
|
if (LOG_ERROR) {
|
||||||
|
print(str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG_INFO = 1;
|
||||||
|
|
||||||
logInfo = function(str) {
|
logInfo = function(str) {
|
||||||
print(str);
|
if (LOG_INFO) {
|
||||||
|
print(str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG_DEBUG = 0;
|
||||||
|
|
||||||
logDebug = function(str) {
|
logDebug = function(str) {
|
||||||
print(str);
|
if (LOG_DEBUG) {
|
||||||
|
print(str);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
LOG_TRACE = 0;
|
||||||
|
|
||||||
|
logTrace = function(str) {
|
||||||
|
if (LOG_TRACE) {
|
||||||
|
print(str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Computes the penetration between a point and a sphere (centered at the origin)
|
// Computes the penetration between a point and a sphere (centered at the origin)
|
||||||
|
|
Loading…
Reference in a new issue