summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-06 15:58:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-06 15:58:39 +0000
commit8f525719cc6994dce4982eb836406b5717a47d75 (patch)
tree89d7563776a61ac7d4a77799dd326e7607292232 /etc/inc/system.inc
parentbca8e0eca2a4f243b2a67a424bfff7fc81634220 (diff)
downloadpfsense-8f525719cc6994dce4982eb836406b5717a47d75.zip
pfsense-8f525719cc6994dce4982eb836406b5717a47d75.tar.gz
Do not print errors to console, output them to syslog.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 2f7ae88..e3f2189 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -119,7 +119,7 @@ function system_hosts_generate() {
$fd = fopen("{$g['varetc_path']}/hosts", "w");
if (!$fd) {
- printf("Error: cannot open hosts file in system_hosts_generate().\n");
+ log_error("Error: cannot open hosts file in system_hosts_generate().\n");
return 1;
}
OpenPOWER on IntegriCloud