Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Commit

Permalink
Change logging level to debug where appropriate.
Browse files Browse the repository at this point in the history
  • Loading branch information
elvisisking committed Jun 12, 2018
1 parent 1e2bda2 commit bb499d9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions ngapp/src/app/connections/connections.component.ts
Expand Up @@ -260,7 +260,7 @@ export class ConnectionsComponent extends AbstractPageComponent implements OnIni
this.wizardService.setEdit(false);

const link: string[] = [ ConnectionsConstants.addConnectionPath ];
this.logger.log("[ConnectionsComponent] Navigating to: %o", link);
this.logger.debug("[ConnectionsComponent] Navigating to: %o", link);
this.router.navigate(link).then(() => {
// nothing to do
});
Expand All @@ -278,7 +278,7 @@ export class ConnectionsComponent extends AbstractPageComponent implements OnIni
this.wizardService.setEdit(true);

const link: string[] = [ ConnectionsConstants.addConnectionPath ];
this.logger.log("[ConnectionsComponent] Navigating to: %o", link);
this.logger.debug("[ConnectionsComponent] Navigating to: %o", link);
this.router.navigate(link).then(() => {
// nothing to do
});
Expand Down Expand Up @@ -327,7 +327,7 @@ export class ConnectionsComponent extends AbstractPageComponent implements OnIni
const selectedConn = this.filteredConnections.find((x) => x.getId() === this.connectionNameForDelete);

// Note: we can only doDelete selected items that we can see in the UI.
this.logger.log("[ConnectionsPageComponent] Deleting selected Connection.");
this.logger.debug("[ConnectionsPageComponent] Deleting selected Connection.");
const self = this;
this.connectionService
.deleteConnection(selectedConn.getId())
Expand All @@ -336,7 +336,7 @@ export class ConnectionsComponent extends AbstractPageComponent implements OnIni
self.deleteUndeployConnectionVdb(selectedConn.getId());
self.removeConnectionFromList(selectedConn);
const link: string[] = [ ConnectionsConstants.connectionsRootPath ];
self.logger.log("[CreateApiPageComponent] Navigating to: %o", link);
self.logger.debug("[CreateApiPageComponent] Navigating to: %o", link);
self.router.navigate(link).then(() => {
// nothing to do
});
Expand Down
18 changes: 9 additions & 9 deletions ngapp/src/app/dataservices/dataservices.component.ts
Expand Up @@ -227,7 +227,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn
this.wizardService.setEdit(false);

const link: string[] = [ ConnectionsConstants.addConnectionPath ];
this.logger.log( "[DataservicesPageComponent] Navigating to: %o", link );
this.logger.debug( "[DataservicesPageComponent] Navigating to: %o", link );
this.router.navigate( link ).then(() => {
// nothing to do
} );
Expand Down Expand Up @@ -488,7 +488,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn
this.exportNotificationMessage = "Downloading " + svcName + "...";
this.exportNotificationType = NotificationType.INFO;
this.exportNotificationVisible = true;
this.logger.log("[DataservicesPageComponent] Downloading Dataservice: " + svcName);
this.logger.debug("[DataservicesPageComponent] Downloading Dataservice: " + svcName);
const self = this;
this.dataserviceService
.downloadDataservice(svcName)
Expand All @@ -497,7 +497,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn
self.exportNotificationHeader = this.downloadSuccessHeader;
self.exportNotificationMessage = " " + svcName + " was downloaded successfully!";
self.exportNotificationType = NotificationType.SUCCESS;
this.logger.log("[DataservicesPageComponent] Download Dataservice was successful");
this.logger.debug("[DataservicesPageComponent] Download Dataservice was successful");
},
(error) => {
self.exportNotificationHeader = this.downloadFailedHeader;
Expand All @@ -518,7 +518,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn
this.exportNotificationMessage = "Publishing " + svcName + "...";
this.exportNotificationType = NotificationType.INFO;
this.exportNotificationVisible = true;
this.logger.log("[DataservicesPageComponent] Publishing Dataservice: " + svcName);
this.logger.debug("[DataservicesPageComponent] Publishing Dataservice: " + svcName);
const self = this;
this.dataserviceService
.publishDataservice(svcName)
Expand All @@ -527,13 +527,13 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn
self.exportNotificationHeader = this.exportSuccessHeader;
self.exportNotificationMessage = " " + svcName + " publishing successfully initiated.";
self.exportNotificationType = NotificationType.INFO;
this.logger.log("[DataservicesPageComponent] Initiated publishing of dataservice");
this.logger.debug("[DataservicesPageComponent] Initiated publishing of dataservice");
},
(error) => {
self.exportNotificationHeader = this.exportFailedHeader;
self.exportNotificationMessage = " Failed to publish dataservice " + svcName + ".";
self.exportNotificationType = NotificationType.DANGER;
this.logger.log("[DataservicesPageComponent] Publish dataservice " + svcName + " failed.");
this.logger.error("[DataservicesPageComponent] Publish dataservice " + svcName + " failed.");
}
);
}
Expand Down Expand Up @@ -573,7 +573,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn
this.selectionService.setSelectedVirtualization(null);

const link: string[] = [ DataservicesConstants.virtualizationPath ];
this.logger.log("[DataservicesPageComponent] Navigating to: %o", link);
this.logger.debug("[DataservicesPageComponent] Navigating to: %o", link);
this.router.navigate(link).then(() => {
// nothing to do
});
Expand All @@ -593,7 +593,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn
this.selectionService.setSelectedVirtualization(selectedService);

const link: string[] = [ DataservicesConstants.virtualizationPath ];
this.logger.log("[DataservicesPageComponent] Navigating to: %o", link);
this.logger.debug("[DataservicesPageComponent] Navigating to: %o", link);
this.router.navigate(link).then(() => {
// nothing to do
});
Expand Down Expand Up @@ -665,7 +665,7 @@ export class DataservicesComponent extends AbstractPageComponent implements OnIn
// const selectedService = itemsToDelete[0];

// Note: we can only doDelete selected items that we can see in the UI.
this.logger.log("[DataservicesPageComponent] Deleting selected Dataservice.");
this.logger.debug("[DataservicesPageComponent] Deleting selected Dataservice.");
const self = this;
this.dataserviceService
.deleteDataservice(selectedService.getId())
Expand Down
Expand Up @@ -98,7 +98,7 @@ export class ConnectionTableDialogComponent implements OnInit {
self.connectionLoadingState = LoadingState.LOADED_VALID;
},
(error) => {
// self.logger.error("[ConnectionSchemaTreeComponent] Error getting connections: %o", error);
self.loggerService.error("[ConnectionTableDialogComponent] Error getting connections: %o", error);
self.connectionLoadingState = LoadingState.LOADED_INVALID;
}
);
Expand Down
Expand Up @@ -281,7 +281,7 @@ export class VirtualizationComponent implements OnInit {
this.selectionService.setSelectedView( this.currentVirtualization, null );

const link: string[] = [ DataservicesConstants.viewPath ];
this.logger.log("[VirtualizationComponent] Navigating to: %o", link);
this.logger.debug("[VirtualizationComponent] Navigating to: %o", link);
this.router.navigate(link).then(() => {
// nothing to do
});
Expand All @@ -297,7 +297,7 @@ export class VirtualizationComponent implements OnInit {
this.selectionService.setSelectedView( this.currentVirtualization, selectedView );

const link: string[] = [ DataservicesConstants.viewPath ];
this.logger.log("[VirtualizationComponent] Navigating to: %o", link);
this.logger.debug("[VirtualizationComponent] Navigating to: %o", link);
this.router.navigate(link).then(() => {
// nothing to do
});
Expand All @@ -320,7 +320,7 @@ export class VirtualizationComponent implements OnInit {
const vdbName = this.currentVirtualization.getServiceVdbName();
const modelName = this.currentVirtualization.getServiceViewModel();
// Note: we can only doDelete selected items that we can see in the UI.
this.logger.log("[VirtualizationComponent] Deleting selected Virtualization View.");
this.logger.debug("[VirtualizationComponent] Deleting selected Virtualization View.");
const self = this;
this.vdbService
.deleteView(vdbName, modelName, selectedView.getName())
Expand Down

0 comments on commit bb499d9

Please sign in to comment.