Skip to content

Commit 2dc8e6a

Browse files
committed
Remove unnecessary \n in logs
1 parent 914929a commit 2dc8e6a

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

Diff for: cli/dashboard/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func initCreateCommand() *cobra.Command {
5454
}
5555

5656
func runCreateCommand(cmd *cobra.Command, args []string) {
57-
logrus.Infof("Creating dashboard from template %s\n", createFlags.template)
57+
logrus.Infof("Creating dashboard from template %s", createFlags.template)
5858

5959
params := &dashboard.CreateParams{
6060
Template: createFlags.template,

Diff for: cli/dashboard/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func initDeleteCommand() *cobra.Command {
4444
}
4545

4646
func runDeleteCommand(cmd *cobra.Command, args []string) {
47-
logrus.Infof("Deleting dashboard %s\n", deleteFlags.id)
47+
logrus.Infof("Deleting dashboard %s", deleteFlags.id)
4848

4949
params := &dashboard.DeleteParams{ID: deleteFlags.id}
5050
err := dashboard.Delete(params)

Diff for: cli/dashboard/extract.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func initExtractCommand() *cobra.Command {
5454
}
5555

5656
func runExtractCommand(cmd *cobra.Command, args []string) {
57-
logrus.Infof("Extracting template from dashboard %s\n", extractFlags.id)
57+
logrus.Infof("Extracting template from dashboard %s", extractFlags.id)
5858

5959
params := &dashboard.ExtractParams{
6060
ID: extractFlags.id,

Diff for: cli/device/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func initCreateCommand() *cobra.Command {
4949
}
5050

5151
func runCreateCommand(cmd *cobra.Command, args []string) {
52-
logrus.Infof("Creating device with name %s\n", createFlags.name)
52+
logrus.Infof("Creating device with name %s", createFlags.name)
5353

5454
params := &device.CreateParams{
5555
Name: createFlags.name,

Diff for: cli/device/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func initDeleteCommand() *cobra.Command {
5252
}
5353

5454
func runDeleteCommand(cmd *cobra.Command, args []string) {
55-
logrus.Infof("Deleting device %s\n", deleteFlags.id)
55+
logrus.Infof("Deleting device %s", deleteFlags.id)
5656

5757
params := &device.DeleteParams{Tags: deleteFlags.tags}
5858
if deleteFlags.id != "" {

Diff for: cli/device/tag/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func InitCreateTagsCommand() *cobra.Command {
5252
}
5353

5454
func runCreateTagsCommand(cmd *cobra.Command, args []string) {
55-
logrus.Infof("Creating tags on device %s\n", createTagsFlags.id)
55+
logrus.Infof("Creating tags on device %s", createTagsFlags.id)
5656

5757
params := &tag.CreateTagsParams{
5858
ID: createTagsFlags.id,

Diff for: cli/device/tag/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func InitDeleteTagsCommand() *cobra.Command {
4949
}
5050

5151
func runDeleteTagsCommand(cmd *cobra.Command, args []string) {
52-
logrus.Infof("Deleting tags with keys %s\n", deleteTagsFlags.keys)
52+
logrus.Infof("Deleting tags with keys %s", deleteTagsFlags.keys)
5353

5454
params := &tag.DeleteTagsParams{
5555
ID: deleteTagsFlags.id,

Diff for: cli/thing/bind.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func initBindCommand() *cobra.Command {
4747
}
4848

4949
func runBindCommand(cmd *cobra.Command, args []string) {
50-
logrus.Infof("Binding thing %s to device %s\n", bindFlags.id, bindFlags.deviceID)
50+
logrus.Infof("Binding thing %s to device %s", bindFlags.id, bindFlags.deviceID)
5151

5252
params := &thing.BindParams{
5353
ID: bindFlags.id,

Diff for: cli/thing/clone.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func initCloneCommand() *cobra.Command {
4949
}
5050

5151
func runCloneCommand(cmd *cobra.Command, args []string) {
52-
logrus.Infof("Cloning thing %s into a new thing called %s\n", cloneFlags.cloneID, cloneFlags.name)
52+
logrus.Infof("Cloning thing %s into a new thing called %s", cloneFlags.cloneID, cloneFlags.name)
5353

5454
params := &thing.CloneParams{
5555
Name: cloneFlags.name,

Diff for: cli/thing/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func initCreateCommand() *cobra.Command {
5454
}
5555

5656
func runCreateCommand(cmd *cobra.Command, args []string) {
57-
logrus.Infof("Creating thing from template %s\n", createFlags.template)
57+
logrus.Infof("Creating thing from template %s", createFlags.template)
5858

5959
params := &thing.CreateParams{
6060
Template: createFlags.template,

Diff for: cli/thing/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func initDeleteCommand() *cobra.Command {
5252
}
5353

5454
func runDeleteCommand(cmd *cobra.Command, args []string) {
55-
logrus.Infof("Deleting thing %s\n", deleteFlags.id)
55+
logrus.Infof("Deleting thing %s", deleteFlags.id)
5656

5757
params := &thing.DeleteParams{Tags: deleteFlags.tags}
5858
if deleteFlags.id != "" {

Diff for: cli/thing/extract.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func initExtractCommand() *cobra.Command {
5454
}
5555

5656
func runExtractCommand(cmd *cobra.Command, args []string) {
57-
logrus.Infof("Extracting template from thing %s\n", extractFlags.id)
57+
logrus.Infof("Extracting template from thing %s", extractFlags.id)
5858

5959
params := &thing.ExtractParams{
6060
ID: extractFlags.id,

Diff for: cli/thing/tag/create.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func InitCreateTagsCommand() *cobra.Command {
5252
}
5353

5454
func runCreateTagsCommand(cmd *cobra.Command, args []string) {
55-
logrus.Infof("Creating tags on thing %s\n", createTagsFlags.id)
55+
logrus.Infof("Creating tags on thing %s", createTagsFlags.id)
5656

5757
params := &tag.CreateTagsParams{
5858
ID: createTagsFlags.id,

Diff for: cli/thing/tag/delete.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func InitDeleteTagsCommand() *cobra.Command {
4949
}
5050

5151
func runDeleteTagsCommand(cmd *cobra.Command, args []string) {
52-
logrus.Infof("Deleting tags with keys %s\n", deleteTagsFlags.keys)
52+
logrus.Infof("Deleting tags with keys %s", deleteTagsFlags.keys)
5353

5454
params := &tag.DeleteTagsParams{
5555
ID: deleteTagsFlags.id,

0 commit comments

Comments
 (0)