Commit b736347f authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

better logging

parent e24cea56
...@@ -40,7 +40,7 @@ function getOrCreatePod(podName, repl, shouldCreate, next) { ...@@ -40,7 +40,7 @@ function getOrCreatePod(podName, repl, shouldCreate, next) {
k8.ns(config.k8component.namespace).pod.get(podName, function(err, result) { k8.ns(config.k8component.namespace).pod.get(podName, function(err, result) {
if(err) { if(err) {
if (shouldCreate) { if (shouldCreate) {
logger.debug(`creating ${podName}`) logger.info(`creating ${podName}`)
components.templateForImage(repl, function(err, template, repl) { components.templateForImage(repl, function(err, template, repl) {
if(err) { if(err) {
logger.error(`Cannot start pod ${podName}, error in template generation: ${stringify(err)}`); logger.error(`Cannot start pod ${podName}, error in template generation: ${stringify(err)}`);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment