oarevalo / BugLogHQ

BugLogHQ is a tool to centralize the handling of automated bug reports from multiple applications. BugLogHQ provides a unified view of error messages sent from any number of applications, allowing the developer to search, graph, forward, and explore the bug reports submitted by the applications.
http://www.bugloghq.com
155 stars 67 forks source link

The value returned from the getService function is not of type bugLogListener #120

Open atuttle opened 9 years ago

atuttle commented 9 years ago

components\service.cfc contains this function:

<cffunction name="getService" returntype="bugLogListener" access="public" hint="Returns the currently running instance of the service">
    <!--- See if we want to auto-start the service --->
    <cfif  !isRunning() and getSetting("autoStart")>
        <cfset loadInstance()>
    </cfif>
    <cfreturn getInstance()>
</cffunction>

Via dump + abort I was able to verify that it is returning a bugLogListenerAsync instance, which extends bugLogListener. Apparently this does not satisfy the returnType requirement. I'm removing the returnType argument for now, because I know it's working fine, but if this was a recent addition, you may want to look at it again.

ACF 9,0,1,274733 running on Windows.

oarevalo commented 9 years ago

Huh, well the idea was that since bugLogListenerAsync inherits from bugLogListener, the return type should be able to work. But I guess that was just a bad assumption on my part.