Explorar o código

more logging for ombi import

causefx %!s(int64=7) %!d(string=hai) anos
pai
achega
4c5200210f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      api/functions/homepage-connect-functions.php

+ 4 - 0
api/functions/homepage-connect-functions.php

@@ -1808,9 +1808,13 @@ function ombiImport($type = null)
 			if ($response->success) {
 				writeLog('success', 'OMBI Connect Function - Ran User Import', 'SYSTEM');
 				return true;
+			}else{
+				writeLog('error', 'OMBI Connect Function - Error: Connection Unsuccessful', 'SYSTEM');
+				return false;
 			}
 		} catch (Requests_Exception $e) {
 			writeLog('error', 'OMBI Connect Function - Error: ' . $e->getMessage(), 'SYSTEM');
+			return false;
 		};
 	}
 	return false;