             informationPart = "\(filename).\(function)[\(line)]:"
         }
         printLog(informationPart, text: warning, level: level)
-    }
-
-    if QorumOnlineLogs.shouldSendLine(level: level, fileName: filename) {
+    } else if QorumOnlineLogs.shouldSendLine(level: level, fileName: filename) {
         let informationPart = "\(filename).\(function)[\(line)]"
         QorumOnlineLogs.sendError(classInformation: informationPart, textObject: warning, level: levelText)
     }

            informationPart = "\(filename).\(function)[\(line)]:"
        }
        printLog(informationPart, text: info, level: level)
    }

    if QorumOnlineLogs.shouldSendLine(level: level, fileName: filename) {
        let informationPart = "\(filename).\(function)[\(line)]"
        QorumOnlineLogs.sendError(classInformation: informationPart, textObject: info, level: levelText)
    }

            informationPart = "\(filename).\(function)[\(line)]:"
        }
        printLog(informationPart, text: error, level: level)
    } else if QorumOnlineLogs.shouldSendLine(level: level, fileName: filename) {
        let informationPart = "\(filename).\(function)[\(line)]"
        QorumOnlineLogs.sendError(classInformation: informationPart, textObject: error, level: levelText)
    }
