瀏覽代碼

more logging for ombi import

causefx 7 年之前
父節點
當前提交
4c5200210f
共有 1 個文件被更改,包括 4 次插入0 次删除
  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) {
 			if ($response->success) {
 				writeLog('success', 'OMBI Connect Function - Ran User Import', 'SYSTEM');
 				writeLog('success', 'OMBI Connect Function - Ran User Import', 'SYSTEM');
 				return true;
 				return true;
+			}else{
+				writeLog('error', 'OMBI Connect Function - Error: Connection Unsuccessful', 'SYSTEM');
+				return false;
 			}
 			}
 		} catch (Requests_Exception $e) {
 		} catch (Requests_Exception $e) {
 			writeLog('error', 'OMBI Connect Function - Error: ' . $e->getMessage(), 'SYSTEM');
 			writeLog('error', 'OMBI Connect Function - Error: ' . $e->getMessage(), 'SYSTEM');
+			return false;
 		};
 		};
 	}
 	}
 	return false;
 	return false;