From 969b36231e57851537ad0f9b1bf611365ddec7b5 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 25 Aug 2010 08:31:22 -0700 Subject: [PATCH] Instead of logging non-existant thingId messages to Apache, log to webgui.log --- lib/WebGUI/Asset/Wobject/Thingy.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Wobject/Thingy.pm b/lib/WebGUI/Asset/Wobject/Thingy.pm index 044188676..d530fe5d3 100644 --- a/lib/WebGUI/Asset/Wobject/Thingy.pm +++ b/lib/WebGUI/Asset/Wobject/Thingy.pm @@ -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."}); }