Hi,

the logging is far too less. The problem is, that logging is initialized with log_init(). This reads a file "log.xml" or "log.properties". Initializing logging from tntnet.xml is a little more complicated. I guess I have to fix that. "app.init(config)" should initialize logging as well.

For now it is easiest to put the logging configuration into "log.xml".


Tommi

Am 26.08.2014 17:59, schrieb Jean-Marc Choulet:
Ok.

 <logger>
     <category>tntnet</category>
     <level>DEBUG</level>
  </logger>

I also changed the port : 8000 to 9000 :

 <listener>
   <port>9000</port>
 </listener>



curl http://xxx.xxx.xxx.xxx:9000
<html><body><h1>Error</h1><p>Not Found: vhost: xxx.xxx.xxx.xxx:9000 /</p></body></html>

./myapp
2014-08-26 17:56:58.37331 [19648.140510530180928] INFO tntnet.listener - listen ip= port=9000 2014-08-26 17:56:58.37342 [19648.140510530180928] INFO tntnet.tntnet - create 5 worker threads 2014-08-26 17:57:21.98465 [19648.140510494250752] INFO tntnet.worker - request GET / from client xxx.xxx.xxx.xxx user-Agent "curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3" user "" 2014-08-26 17:57:21.98512 [19648.140510494250752] WARN tntnet.worker - http-Error: 404 Not Found: vhost: xxx.xxx.xxx.xxx:9000 /


Le 26/08/2014 17:44, Tommi Mäkitalo a écrit :
Hi,

please increase the log level of category tntnet to DEBUG and either read the logs or just send them to the list.

          <logger>
            <category>tntnet</category>
            <level>*DEBUG*</level>
          </logger>
Tommi

Am 26.08.2014 17:40, schrieb Jean-Marc Choulet:
Hello,

    <mappings>
      <!-- map / to MyApp@MyApp -->
      <mapping>
        <target>MyApp</target>
        <url>^/$</url>
      </mapping>
      <!-- map /comp.* or /comp to comp@MyApp -->
      <mapping>
        <target>$1</target>
        <url>^/([^.]+)(\..+)?</url>
      </mapping>
    </mappings>



I remove '@MyApp' but I always get the same error.

...


------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general



------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/


_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to