summaryrefslogtreecommitdiffstats
path: root/app/command_msg.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/command_msg.go')
-rw-r--r--app/command_msg.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/command_msg.go b/app/command_msg.go
index cf0e90c74..6877c10d6 100644
--- a/app/command_msg.go
+++ b/app/command_msg.go
@@ -6,7 +6,7 @@ package app
import (
"strings"
- l4g "github.com/alecthomas/log4go"
+ "github.com/mattermost/mattermost-server/mlog"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)
@@ -50,7 +50,7 @@ func (me *msgProvider) DoCommand(a *App, args *model.CommandArgs, message string
var userProfile *model.User
if result := <-a.Srv.Store.User().GetByUsername(targetUsername); result.Err != nil {
- l4g.Error(result.Err.Error())
+ mlog.Error(result.Err.Error())
return &model.CommandResponse{Text: args.T("api.command_msg.missing.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
} else {
userProfile = result.Data.(*model.User)
@@ -67,13 +67,13 @@ func (me *msgProvider) DoCommand(a *App, args *model.CommandArgs, message string
if channel := <-a.Srv.Store.Channel().GetByName(args.TeamId, channelName, true); channel.Err != nil {
if channel.Err.Id == "store.sql_channel.get_by_name.missing.app_error" {
if directChannel, err := a.CreateDirectChannel(args.UserId, userProfile.Id); err != nil {
- l4g.Error(err.Error())
+ mlog.Error(err.Error())
return &model.CommandResponse{Text: args.T("api.command_msg.dm_fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
} else {
targetChannelId = directChannel.Id
}
} else {
- l4g.Error(channel.Err.Error())
+ mlog.Error(channel.Err.Error())
return &model.CommandResponse{Text: args.T("api.command_msg.dm_fail.app_error"), ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
}
} else {