Skip to content

Commit

Permalink
fix log_writer xray label
Browse files Browse the repository at this point in the history
  • Loading branch information
alireza0 committed Feb 18, 2024
1 parent 08153d4 commit 640eb53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xray/log_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ func (lw *LogWriter) Write(m []byte) (n int, err error) {
// Map the level to the appropriate logger function
switch level {
case "Debug":
logger.Debug(msgBody)
logger.Debug("XRAY: " + msgBody)
case "Info":
logger.Info(msgBody)
logger.Info("XRAY: " + msgBody)
case "Warning":
logger.Warning(msgBody)
logger.Warning("XRAY: " + msgBody)
case "Error":
logger.Error(msgBody)
logger.Error("XRAY: " + msgBody)
default:
logger.Debug("XRAY: " + msg)
}
Expand Down

0 comments on commit 640eb53

Please sign in to comment.