[ 
https://issues.apache.org/jira/browse/THRIFT-3833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15294990#comment-15294990
 ] 

ASF GitHub Bot commented on THRIFT-3833:
----------------------------------------

Github user oprudkyi commented on a diff in the pull request:

    https://github.com/apache/thrift/pull/1013#discussion_r64133704
  
    --- Diff: tutorial/haxe/src/Main.hx ---
    @@ -51,14 +51,44 @@ class Main {
         private static var targetPort : Int = 9090;
     
         static function main() {
    -        #if ! (flash || js)
    +
    +        #if ! (flash || js || phpwebserver)
             try {
                   ParseArgs();
             } catch (e : String) {
                 trace(e);
                 trace(GetHelp());
                 return;
             }
    +
    +        #elseif  phpwebserver
    --- End diff --
    
    Hi, 
    There is a problem with php - there is no standard way for logs, while 
stderr(error_log) is ok for tests/samples the real applications/frameworks use  
own logs , so for laravel it will be \Log::info(...) , for Kohana - 
Kohana::log('info', .. ) etc 
    also python/nodejs/lua etc will require own trace handler as well 
    i.e. trace/logs issue belongs to haxe only and can't be fixed at thrift 
side .
    Of course it is possible to create thrift oriented trace() but then user 
level code will be required to follow such scheme  too, and it will be even 
more unusable and inconvenient (like using thrift provided trace function over 
all haxe libs)
    so I decided to leave this issue out of thrift codebase


> haxe http server implementation (by embeding into php web server)
> -----------------------------------------------------------------
>
>                 Key: THRIFT-3833
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3833
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Haxe - Library
>    Affects Versions: 1.0
>            Reporter: Oleksii Prudkyi
>            Assignee: Oleksii Prudkyi
>
> provide way to run haxe servers to run as part of ordinal web server (i.e. 
> php code generated from haxe)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to