File tree 1 file changed +10
-1
lines changed
Symfony/src/Codebender/CompilerBundle/Handler
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,6 @@ function main($request, $compiler_config)
117
117
118
118
// Log the names of the project files and the libraries used in it.
119
119
if ($ format != "autocomplete " ) {
120
- $ user_id = $ sketch_id = "null " ;
121
120
$ req_elements = array ("Files: " );
122
121
123
122
foreach ($ request ["files " ] as $ file ) {
@@ -136,6 +135,16 @@ function main($request, $compiler_config)
136
135
$ req_elements [] = $ libname . "/ " . $ libfile ["filename " ];
137
136
}
138
137
}
138
+
139
+ $ user_id = "null " ;
140
+ if (isset ($ request ['userId ' ])) {
141
+ $ user_id = $ request ['userId ' ];
142
+ }
143
+
144
+ $ sketch_id = "null " ;
145
+ if (isset ($ request ['projectId ' ])) {
146
+ $ sketch_id = $ request ['projectId ' ];
147
+ }
139
148
140
149
$ this ->logger_id = microtime (true ) . "_ " . substr ($ compiler_config ['compiler_dir ' ], -6 ) . "_user: $ user_id " . "_project: $ sketch_id " ;
141
150
You can’t perform that action at this time.
0 commit comments