Skip to content
Snippets Groups Projects
Commit 54878ddb authored by Jono Wenger's avatar Jono Wenger
Browse files

Fix INFO logs and add package descrption

parent 873f0e58
No related branches found
No related tags found
2 merge requests!67fix for latest client release,!61Add emoji sanitizater
This commit is part of merge request !67. Comments created here will be created in the context of that merge request.
......@@ -55,13 +55,13 @@ func (s *Set) SanitizeEmojiMartSet(frontendEmojiSetJson []byte) ([]byte, error)
"failed to unmarshal emoji-mart set JSON: %+v", err)
}
jww.INFO.Printf(
jww.DEBUG.Printf(
"Finding incompatible emojis and replacing mismatched codepoints.")
// Find all incompatible emojis in the front end set
emojisToRemove := s.findIncompatibleEmojis(&frontEndEmojiSet)
jww.INFO.Printf("Removing incompatible emojis.")
jww.DEBUG.Printf("Removing incompatible emojis.")
// Remove all incompatible emojis from the set
removeIncompatibleEmojis(&frontEndEmojiSet, emojisToRemove)
......
......@@ -5,6 +5,10 @@
// LICENSE file. //
////////////////////////////////////////////////////////////////////////////////
// package main is its own utility that is compiled separate from xxdk-WASM. It
// is used only to produce a compatible emoji file to be used by the frontend
// and is not a WASM module itself.
package main
import (
......@@ -67,8 +71,7 @@ var cmd = &cobra.Command{
jww.FATAL.Panicf("Bad status: %s", resp.Status)
}
jww.INFO.Printf("Received HTTP response: %s", resp.Status)
jww.DEBUG.Printf("Response: %+v", resp)
jww.DEBUG.Printf("Received HTTP response: %+v", resp)
// Read HTTP response into byte slice
var buf bytes.Buffer
......@@ -81,7 +84,7 @@ var cmd = &cobra.Command{
}
emojiMartJson := buf.Bytes()
jww.INFO.Printf("Read %d bytes of JSON file", len(emojiMartJson))
jww.DEBUG.Printf("Read %d bytes of JSON file", len(emojiMartJson))
// Sanitize the JSON file
backendSet := NewSet()
......@@ -90,7 +93,7 @@ var cmd = &cobra.Command{
jww.FATAL.Panicf("Failed to sanitize emoji-mart list: %+v", err)
}
jww.INFO.Printf("Sanitised JSON file.")
jww.DEBUG.Printf("Sanitised JSON file.")
// Write sanitized JSON to file
err = utils.WriteFileDef(outputPath, sanitizedJSON)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment