Skip to content

Commit a7cf2f4

Browse files
committed
turn off log for swift credential
1 parent 8dc731b commit a7cf2f4

6 files changed

Lines changed: 13 additions & 0 deletions

‎api/src/com/cloud/agent/api/BackupSnapshotCommand.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818
package com.cloud.agent.api;
1919

20+
import com.cloud.agent.api.LogLevel.Log4jLevel;
2021
import com.cloud.agent.api.to.StorageFilerTO;
2122
import com.cloud.agent.api.to.SwiftTO;
2223
import com.cloud.storage.StoragePool;
@@ -34,6 +35,7 @@ public class BackupSnapshotCommand extends SnapshotCommand {
3435
private boolean isVolumeInactive;
3536
private String vmName;
3637
private Long snapshotId;
38+
@LogLevel(Log4jLevel.Off)
3739
private SwiftTO swift;
3840
StorageFilerTO pool;
3941

‎api/src/com/cloud/agent/api/DeleteSnapshotBackupCommand.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717
*/
1818
package com.cloud.agent.api;
1919

20+
import com.cloud.agent.api.LogLevel.Log4jLevel;
2021
import com.cloud.agent.api.to.SwiftTO;
2122

2223
/**
2324
* This command encapsulates a primitive operation which enables coalescing the backed up VHD snapshots on the secondary server
2425
* This currently assumes that the secondary storage are mounted on the XenServer.
2526
*/
2627
public class DeleteSnapshotBackupCommand extends SnapshotCommand {
28+
@LogLevel(Log4jLevel.Off)
2729
private SwiftTO swift;
2830
private Boolean all;
2931

‎api/src/com/cloud/agent/api/downloadSnapshotFromSwiftCommand.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818
package com.cloud.agent.api;
1919

20+
import com.cloud.agent.api.LogLevel.Log4jLevel;
2021
import com.cloud.agent.api.to.SwiftTO;
2122

2223
/**
@@ -27,6 +28,7 @@
2728
* This currently assumes that both primary and secondary storage are mounted on the XenServer.
2829
*/
2930
public class downloadSnapshotFromSwiftCommand extends SnapshotCommand {
31+
@LogLevel(Log4jLevel.Off)
3032
private SwiftTO _swift;
3133

3234
private String _parent;

‎api/src/com/cloud/agent/api/downloadTemplateFromSwiftToSecondaryStorageCommand.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818
package com.cloud.agent.api;
1919

20+
import com.cloud.agent.api.LogLevel.Log4jLevel;
2021
import com.cloud.agent.api.to.SwiftTO;
2122

2223
/**
@@ -26,6 +27,7 @@
2627
*/
2728

2829
public class downloadTemplateFromSwiftToSecondaryStorageCommand extends Command {
30+
@LogLevel(Log4jLevel.Off)
2931
private SwiftTO swift;
3032
private String secondaryStorageUrl;
3133

‎api/src/com/cloud/agent/api/storage/ListTemplateCommand.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,13 @@
1717
*/
1818
package com.cloud.agent.api.storage;
1919

20+
import com.cloud.agent.api.LogLevel;
21+
import com.cloud.agent.api.LogLevel.Log4jLevel;
2022
import com.cloud.agent.api.to.SwiftTO;
2123

2224
public class ListTemplateCommand extends StorageCommand {
2325
private String secUrl;
26+
@LogLevel(Log4jLevel.Off)
2427
private SwiftTO swift;
2528

2629
public ListTemplateCommand() {

‎api/src/com/cloud/agent/api/uploadTemplateToSwiftFromSecondaryStorageCommand.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818
package com.cloud.agent.api;
1919

20+
import com.cloud.agent.api.LogLevel.Log4jLevel;
2021
import com.cloud.agent.api.to.SwiftTO;
2122

2223
/**
@@ -26,6 +27,7 @@
2627
*/
2728

2829
public class uploadTemplateToSwiftFromSecondaryStorageCommand extends Command {
30+
@LogLevel(Log4jLevel.Off)
2931
private SwiftTO swift;
3032
private String secondaryStorageUrl;
3133

0 commit comments

Comments
 (0)