Skip to content

Commit 32fe64c

Browse files
Jayapalyadvr
authored andcommitted
Avoid logging password when adding srx device
Signed-off-by: Rohit Yadav <[email protected]>
1 parent d94a572 commit 32fe64c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

framework/jobs/src/org/apache/cloudstack/framework/jobs/impl/AsyncJobManagerImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
import com.cloud.utils.DateUtil;
6262
import com.cloud.utils.Pair;
6363
import com.cloud.utils.Predicate;
64+
import com.cloud.utils.StringUtils;
6465
import com.cloud.utils.component.ComponentLifecycle;
6566
import com.cloud.utils.component.ManagerBase;
6667
import com.cloud.utils.concurrency.NamedThreadFactory;
@@ -179,7 +180,7 @@ public long submitAsyncJob(AsyncJob job, boolean scheduleJobExecutionInContext)
179180
publishOnEventBus(job, "submit");
180181
scheduleExecution(job, scheduleJobExecutionInContext);
181182
if (s_logger.isDebugEnabled()) {
182-
s_logger.debug("submit async job-" + job.getId() + ", details: " + job.toString());
183+
s_logger.debug("submit async job-" + job.getId() + ", details: " + StringUtils.cleanString(job.toString()));
183184
}
184185
return job.getId();
185186
}
@@ -518,7 +519,7 @@ protected void runInContext() {
518519

519520
// execute the job
520521
if (s_logger.isDebugEnabled()) {
521-
s_logger.debug("Executing " + job);
522+
s_logger.debug("Executing " + StringUtils.cleanString(job.toString()));
522523
}
523524

524525
if ((getAndResetPendingSignals(job) & AsyncJob.Constants.SIGNAL_MASK_WAKEUP) != 0) {

0 commit comments

Comments
 (0)