Skip to content

Commit

Permalink
More logs pls
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsturgeon committed Jan 22, 2022
1 parent 01e966f commit 6ce67ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions moon/cfc_chat_transit/server/avatar_service.moon
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class AvatarService

processAvatar: (avatarUrl, outlineColor, steamID) =>
body = TableToJSON { :avatarUrl, :outlineColor, :steamID }
@logger\debug "Sending data to outliner: ", body
@logger\info "Sending data to outliner: ", body

failed = @logger\error
success = (code, body) ->
@logger\debug "Avatar request succeeded with code: #{code} | Body: #{body}"
@logger\info "Avatar request succeeded with code: #{code} | Body: #{body}"

HTTP
:success
Expand All @@ -28,7 +28,7 @@ class AvatarService
type: "application/json"

outlineAvatar: (ply, data) =>
@logger\debug "Received request to outline avatar for ply: #{ply\Nick!}"
@logger\info "Received request to outline avatar for ply: #{ply\Nick!}"
avatar = data.response.players[1].avatarfull
outlineColor = ChatTransit\GetTeamColor ply\Team!
steamID = ply\SteamID64!
Expand Down

0 comments on commit 6ce67ee

Please sign in to comment.