Remove debug logs

This commit is contained in:
qowevisa 2024-06-08 22:25:11 +03:00
parent b893e0af71
commit 718362a2d7
2 changed files with 0 additions and 6 deletions

View File

@ -129,8 +129,6 @@ func readFromWebSocket(conn net.Conn, ws *websocket.Conn) {
log.Printf("Error: link: %v", err) log.Printf("Error: link: %v", err)
continue continue
} }
log.Printf("I generated link: %v\n", l)
log.Printf("Link data as string is: %s\n", string(l.Data))
tmpLink = &l tmpLink = &l
answ, err := com.ClientSendServerLink(r.ID, l) answ, err := com.ClientSendServerLink(r.ID, l)
if err != nil { if err != nil {

View File

@ -37,7 +37,6 @@ func (l *LinkCenter) AddLink(id uint16, link com.Link) error {
} }
log.Printf("Added link by %s\n", string(link.Data)) log.Printf("Added link by %s\n", string(link.Data))
l.Mu.Unlock() l.Mu.Unlock()
l.debug()
return nil return nil
} }
@ -59,10 +58,7 @@ func (l *LinkCenter) DeleteLink(data []byte) error {
} }
func (l *LinkCenter) GetLink(data []byte) (*UserLink, error) { func (l *LinkCenter) GetLink(data []byte) (*UserLink, error) {
l.debug()
log.Printf("LinkCenter : GetLink by : %s\n", string(data))
val, found := l.Links[string(data)] val, found := l.Links[string(data)]
log.Printf("VAL = %v ; F = %v", val, found)
if !found { if !found {
return nil, ERROR_DONT_HAVE return nil, ERROR_DONT_HAVE
} }