diff options
author | 2017-12-06 22:23:22 +0100 | |
---|---|---|
committer | 2017-12-06 22:23:22 +0100 | |
commit | 2a71bce9bed827090f084fad90c14daca5f678c1 (patch) | |
tree | 62c0c5ae1151408d4491b11dcee37469dd36e1f2 /src/api | |
parent | explicitly set tar extract option preserveOwner to false (diff) | |
download | ferdium-app-2a71bce9bed827090f084fad90c14daca5f678c1.tar.gz ferdium-app-2a71bce9bed827090f084fad90c14daca5f678c1.tar.zst ferdium-app-2a71bce9bed827090f084fad90c14daca5f678c1.zip |
remove excessive debug logs
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/server/ServerApi.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/api/server/ServerApi.js b/src/api/server/ServerApi.js index 33f998b90..8b3136d27 100644 --- a/src/api/server/ServerApi.js +++ b/src/api/server/ServerApi.js | |||
@@ -308,7 +308,6 @@ export default class ServerApi { | |||
308 | console.debug('Recipe downloaded', recipeId); | 308 | console.debug('Recipe downloaded', recipeId); |
309 | const buffer = await res.buffer(); | 309 | const buffer = await res.buffer(); |
310 | fs.writeFileSync(archivePath, buffer); | 310 | fs.writeFileSync(archivePath, buffer); |
311 | console.debug('Recipe written to filesystem', recipeId); | ||
312 | 311 | ||
313 | await sleep(10); | 312 | await sleep(10); |
314 | 313 | ||
@@ -320,22 +319,14 @@ export default class ServerApi { | |||
320 | preserveOwner: false, | 319 | preserveOwner: false, |
321 | onwarn: x => console.log('warn', recipeId, x), | 320 | onwarn: x => console.log('warn', recipeId, x), |
322 | }); | 321 | }); |
323 | console.debug('Recipe extracted to', recipeTempDirectory); | ||
324 | 322 | ||
325 | await sleep(10); | 323 | await sleep(10); |
326 | 324 | ||
327 | const { id } = fs.readJsonSync(path.join(recipeTempDirectory, 'package.json')); | 325 | const { id } = fs.readJsonSync(path.join(recipeTempDirectory, 'package.json')); |
328 | console.debug('Recipe config parsed', id); | ||
329 | |||
330 | const recipeDirectory = path.join(recipesDirectory, id); | 326 | const recipeDirectory = path.join(recipesDirectory, id); |
331 | fs.copySync(recipeTempDirectory, recipeDirectory); | 327 | fs.copySync(recipeTempDirectory, recipeDirectory); |
332 | console.debug('Recipe moved to', recipeDirectory); | ||
333 | |||
334 | fs.remove(recipeTempDirectory); | 328 | fs.remove(recipeTempDirectory); |
335 | console.debug('Recipe temp directory removed', recipeTempDirectory); | ||
336 | |||
337 | fs.remove(path.join(recipesDirectory, recipeId, 'recipe.tar.gz')); | 329 | fs.remove(path.join(recipesDirectory, recipeId, 'recipe.tar.gz')); |
338 | console.debug('Recipe tar.gz removed', path.join(recipesDirectory, recipeId, 'recipe.tar.gz')); | ||
339 | 330 | ||
340 | return id; | 331 | return id; |
341 | } catch (err) { | 332 | } catch (err) { |