Instead of logging non-existant thingId messages to Apache, log to webgui.log

This commit is contained in:
Colin Kuskie 2010-08-25 08:31:22 -07:00
parent 9764c2f406
commit 969b36231e

View file

@ -2668,7 +2668,7 @@ sub www_editThingDataSaveViaAjax {
return '{}';
}
else {
warn "thingId not found in thingProperties\n";
$session->log->warn("thingId ".$thingProperties->{thingId}." not found in thingProperties");
$session->http->setStatus("404", "Not Found");
return JSON->new->encode({message => "The thingId you requested can not be found."});
}