You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "Yee Fan Tan (JIRA)" <ji...@apache.org> on 2015/10/21 20:39:27 UTC
[jira] [Resolved] (SINGA-94) google::InitGoogleLogging() should be
called in main() rather than inside Driver::Init()
[ https://issues.apache.org/jira/browse/SINGA-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yee Fan Tan resolved SINGA-94.
------------------------------
Resolution: Fixed
> google::InitGoogleLogging() should be called in main() rather than inside Driver::Init()
> ----------------------------------------------------------------------------------------
>
> Key: SINGA-94
> URL: https://issues.apache.org/jira/browse/SINGA-94
> Project: Singa
> Issue Type: Bug
> Reporter: Yee Fan Tan
>
> google::InitGoogleLogging() should be called in main() rather than inside Driver::Init().
> Calling google::InitGoogleLogging() twice results in an error log "You called InitGoogleLogging() twice!" and the program terminates from a CHECK condition. As such, it appears that google::InitGoogleLogging() is not intended to be called inside a library, as it prevents the user of the library from calling google::InitGoogleLogging() from his own main() function.
> This glog issue appears to confirm what I say: https://code.google.com/p/google-glog/issues/detail?id=113
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)