Browse Source

more logging for ombi import

causefx 7 years ago
parent
commit
4c5200210f
1 changed files with 4 additions and 0 deletions
  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;