Skip to content

Commit 7aacdc2

Browse files
committed
Make the compiler use the new way of getting the user/project ids
During the last revision of the compileAction of the website, we decided to send the user & project id as request fields. If these fields exist, the compiler will use them in order to mark the compilation logs with a specific id
1 parent 79f9b09 commit 7aacdc2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Symfony/src/Codebender/CompilerBundle/Handler/CompilerHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ function main($request, $compiler_config)
137137
}
138138
}
139139

140+
if (isset($request['userId']) && isset($request['projectId'])) {
141+
$user_id = $request['userId'];
142+
$sketch_id = $request['projectId'];
143+
}
144+
140145
$this->logger_id = microtime(true) . "_" . substr($compiler_config['compiler_dir'], -6) . "_user:$user_id" . "_project:$sketch_id";
141146

142147
$this->compiler_logger->addInfo($this->logger_id . " - " . implode(" ", $req_elements));

0 commit comments

Comments
 (0)