Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-219] Dump: Errors and warnings not shown in the log

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2018-01-19T23:48:14.000+0000
Affected Version/sAppc Daemon 1.1.0
Fix Version/sAppc Daemon 1.1.0
Componentsappcd
Labelsn/a
ReporterEwan Harris
AssigneeChris Barber
Created2018-01-12T11:28:05.000+0000
Updated2018-01-19T23:48:14.000+0000

Description

Description

When running appcd dump I noticed that errors and warnings don't seem to be logged. For example in the attached appcd-dump.json the object at line 14580 should represent the below error
2018-01-12T11:05:41.653Z appcd:core:websocket-session [10] 127.0.0.1:57851 /foo/bar 404 Not Found 1ms
2018-01-12T11:05:41.653Z appcd:core:websocket-session error { DispatcherError: Not Found (code 404)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:137:11)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:144:12)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:144:12)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:144:12)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:144:12)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:144:12)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:144:12)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:144:12)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:144:12)
2018-01-12T11:05:41.653Z appcd:core:websocket-session error     at dispatch (/Users/eharris/Documents/git/appc-daemon/packages/appcd-dispatcher/dist/src/dispatcher.js:144:12) id: '7b5f0598-3581-42a7-acba-8e97421bc519' }
2018-01-12T11:05:41.661Z appcd:http:webserver 127.0.0.1:57851 closed WebSocket
2018-01-12T11:05:41.662Z appcd:http:webserver 127.0.0.1:57851 disconnected

Steps to repro

Ensure the daemon is started and you're watching the logs

appcd exec /foo/bar

appcd dump --view

Actual

Errors and warnings are not shown in the log output

Expected

Errors and warnings should be shown

Attachments

FileDateSize
appcd-dump.json2018-01-12T11:05:57.000+0000480735

Comments

  1. Chris Barber 2018-01-19

    PR: https://github.com/appcelerator/appc-daemon/pull/266

JSON Source