Oh that made sense, sorry I didn't think more what you meant by more
logging. Appreciate the help!
On Apr 24, 6:07 pm, Laurie Harper <
lau...@holoweb.net> wrote:
> Modify the sample code to log the requested url in both handlers:
>
> var express = require('express');
> var app = express.createServer();
>
> app.get('/test', function(req, res) {
> console.log('bar '+req.url);
> res.send('test');
>
> });
>
> app.get('*', function(req, res) {
> console.log('foo '+req.url);
>
> });
>
> app.listen('8888');
>
> If you run 'curlhttp://localhost:8888/test'you'll see 'bar /test'. If you hit the URL with a browser, you will probably see 'bar /test' followed by 'foo /favicon.ico'.
>
> Like I said before, add more logging :-)
>
> L.
>
> On 2011-04-24, at 12:43 PM, vision media [ Tj Holowaychuk ] wrote:
>
>
>
>
>
>
>
>
>
> > shouldn't affect anything
>
> > On Sun, Apr 24, 2011 at 9:39 AM, Tom <
tommed...@gmail.com> wrote:
> > If that is true the only difference I could think of would be the production environment setting, could that be related?
>
> > 2011/4/24 vision media [ Tj Holowaychuk ] <
t...@vision-media.ca>
> > weird man :s im using 2.2.2 as well and I dont get this with that exact script as well
>
> > On Sat, Apr 23, 2011 at 10:11 PM, Austin Chau <
austin.c...@gmail.com> wrote:
> > TJ,
>
> > I am still able to reproduce it with this exactly script. hit this
> > server with /test and it will render 'test' but you will also see
> > 'foo' on the console. I am running latest stable expr...@2.2.2 and
> > conn...@1.3.0
> > For more options, visit this group athttp://
groups.google.com/group/express-js?hl=en.
>
> > --
> > Tj Holowaychuk
> > Vision Media
> > President & Creative Lead
>
> > --
> > You received this message because you are subscribed to the Google Groups "Express" group.
> > To post to this group, send email to
expre...@googlegroups.com.
> > To unsubscribe from this group, send email to
express-js+...@googlegroups.com.
> > For more options, visit this group athttp://
groups.google.com/group/express-js?hl=en.
> > For more options, visit this group athttp://
groups.google.com/group/express-js?hl=en.
>
> > --
> > Tj Holowaychuk
> > Vision Media
> > President & Creative Lead
>
> > --
> > You received this message because you are subscribed to the Google Groups "Express" group.
> > To post to this group, send email to
expre...@googlegroups.com.
> > To unsubscribe from this group, send email to
express-js+...@googlegroups.com.