summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/HttpServ.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc
index 46e2c4d..3b14c49 100644
--- a/lib/HttpServ.cc
+++ b/lib/HttpServ.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: HttpServ.cc,v 1.62 2008-02-15 14:50:32 pixel Exp $ */
+/* $Id: HttpServ.cc,v 1.63 2008-07-16 09:37:40 pixel Exp $ */
#include <vector>
@@ -250,7 +250,7 @@ int ProcessRequest::Do() throw(GeneralException) {
}
}
- std::cerr << " Domain = '" << domain << "' - File = '" << file << "'\n";
+ printm(M_INFO, " Domain = '" + domain + "' - File = '" + file + "'\n");
if (file == "favicon.ico") {
domain = "/image";
@@ -267,7 +267,7 @@ int ProcessRequest::Do() throw(GeneralException) {
if (domain == "") bad = (file != "");
if ((d = Domain::find_domain(Uri))) bad = false;
if (bad) {
- std::cerr << _("Error: bad domain.\n");
+ printm(M_INFO, _("Error: bad domain.\n"));
}
}
@@ -311,11 +311,11 @@ int ProcessRequest::Do() throw(GeneralException) {
SendHeads(&b, GetMime(file), String("Accept-Ranges: bytes") + endhl + "Content-Length: " + (unsigned long long int) i->GetSize() + endhl, i->GetModif());
i->SetNonBlock();
a = new CopyJob(i, &s);
- std::cerr << _("File found, dumping.\n");
+ printm(M_INFO, _("File found, dumping.\n"));
}
catch (IOGeneral e) {
ShowError(&b);
- std::cerr << _("File not found, error shown.\n");
+ printm(M_INFO, _("File not found, error shown.\n"));
}
} else {
ShowError(&b);
@@ -546,7 +546,7 @@ bool ProcessRequest::ParseUri(String & file, String & domain, String & gvars, Ha
ssize_t sppos;
*s >> t;
- std::cerr << _("Read Request (1): ") << t << std::endl;
+ printm(M_INFO, _("Read Request (1): ") + t + "\n");
int IPos = t.strchr('?');