add reason why Propel connection failed
This commit is contained in:
parent
fdb7d55ac1
commit
0416c05f9c
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ class Application_Model_Preference
|
||||||
|
|
||||||
} catch (Exception $e){
|
} catch (Exception $e){
|
||||||
header('HTTP/1.0 503 Service Unavailable');
|
header('HTTP/1.0 503 Service Unavailable');
|
||||||
Logging::log("Could not connect to database.");
|
Logging::log("Could not connect to database: ".$e->getMessage());
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ class Application_Model_Preference
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
header('HTTP/1.0 503 Service Unavailable');
|
header('HTTP/1.0 503 Service Unavailable');
|
||||||
Logging::log("Could not connect to database.");
|
Logging::log("Could not connect to database: ".$e->getMessage());
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue