@@ -27,39 +27,34 @@ export class ExecutorService {
27
27
28
28
this . reset . emit ( ) ;
29
29
const promise = new CancelablePromise < void > ( ( resolve ) => {
30
- console . debug ( 'Starting Emulator' ) ;
31
30
resolve ( this . emulator . start ( ) ) ;
32
31
} )
33
32
. then ( ( ) => {
34
- console . debug ( 'Sending file' ) ;
35
33
return this . emulator . sendFile ( filename + '.dme' , code ) ;
36
34
} )
37
35
. then ( ( ) => {
38
- console . debug ( 'Starting compiler' ) ;
39
36
return this . commandQueue . runProcess (
40
37
'/byond/bin/DreamMaker' ,
41
38
'/mnt/host/' + filename + '.dme' ,
42
39
new Map ( [ [ 'LD_LIBRARY_PATH' , '/byond/bin' ] ] ) ,
43
40
) ;
44
41
} )
45
42
. then ( ( compiler ) => {
46
- console . debug ( 'Waiting for compiler' ) ;
43
+ this . output . emit ( '=== Compile stage ===\n' ) ;
44
+ compiler . stdout . subscribe ( ( val ) => this . output . emit ( val ) ) ;
47
45
stageAbort = compiler . kill ;
48
46
return once ( compiler . exit ) ;
49
47
} )
50
48
. then ( ( ) => {
51
- console . debug ( 'Starting server' ) ;
52
49
return this . commandQueue . runProcess (
53
50
'/byond/bin/DreamDaemon' ,
54
51
`/mnt/host/${ filename } .dmb\0-trusted` ,
55
52
new Map ( [ [ 'LD_LIBRARY_PATH' , '/byond/bin' ] ] ) ,
56
53
) ;
57
54
} )
58
55
. then ( ( server ) => {
59
- console . debug ( 'Waiting for server' ) ;
60
- server . stderr . subscribe ( ( val ) => {
61
- this . output . emit ( val ) ;
62
- } ) ;
56
+ this . output . emit ( '\n=== Run stage ===\n' ) ;
57
+ server . stderr . subscribe ( ( val ) => this . output . emit ( val ) ) ;
63
58
stageAbort = server . kill ;
64
59
return once ( server . exit ) ;
65
60
} )
0 commit comments