Remove INFO log tags now that log prefix is implemented
This commit is contained in:
parent
443b3a0765
commit
d020c708cb
1 changed files with 4 additions and 4 deletions
8
main.go
8
main.go
|
@ -43,9 +43,9 @@ func getBrowserSessions() []commandChoice {
|
||||||
log.Printf("Error finding user configuration directory: %v", err)
|
log.Printf("Error finding user configuration directory: %v", err)
|
||||||
return []commandChoice{}
|
return []commandChoice{}
|
||||||
}
|
}
|
||||||
log.Printf("INFO userConfigDir: %+v", userConfigDir)
|
log.Printf("userConfigDir: %+v", userConfigDir)
|
||||||
fileSystem := os.DirFS(userConfigDir)
|
fileSystem := os.DirFS(userConfigDir)
|
||||||
log.Printf("INFO fileSystem: %+v", fileSystem)
|
log.Printf("fileSystem: %+v", fileSystem)
|
||||||
fileList, err := fs.ReadDir(fileSystem, "local/share/qutebrowser/sessions")
|
fileList, err := fs.ReadDir(fileSystem, "local/share/qutebrowser/sessions")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error reading browser sessions directory: %v", err)
|
log.Printf("Error reading browser sessions directory: %v", err)
|
||||||
|
@ -56,7 +56,7 @@ func getBrowserSessions() []commandChoice {
|
||||||
result := make([]commandChoice, 0)
|
result := make([]commandChoice, 0)
|
||||||
for _, entry := range fileList {
|
for _, entry := range fileList {
|
||||||
if !entry.IsDir() && strings.HasSuffix(entry.Name(), ".yml") {
|
if !entry.IsDir() && strings.HasSuffix(entry.Name(), ".yml") {
|
||||||
log.Printf("INFO %s", entry.Name())
|
log.Printf("%s", entry.Name())
|
||||||
result = append(result, commandChoice{
|
result = append(result, commandChoice{
|
||||||
displayString: fmt.Sprintf("Qutebrowser session: %s", strings.TrimSuffix(entry.Name(), ".yml")),
|
displayString: fmt.Sprintf("Qutebrowser session: %s", strings.TrimSuffix(entry.Name(), ".yml")),
|
||||||
command: exec.Command("xterm", "-e", "qutebrowser", "--target", "window", "--restore", strings.TrimSuffix(entry.Name(), ".yml")),
|
command: exec.Command("xterm", "-e", "qutebrowser", "--target", "window", "--restore", strings.TrimSuffix(entry.Name(), ".yml")),
|
||||||
|
@ -102,7 +102,7 @@ func launch(m model) tea.Cmd {
|
||||||
var result statusMsg
|
var result statusMsg
|
||||||
for q, item := range m.choices {
|
for q, item := range m.choices {
|
||||||
if _, ok := m.selected[q]; ok {
|
if _, ok := m.selected[q]; ok {
|
||||||
log.Printf("INFO launching: %v\n", item.displayString)
|
log.Printf("launching: %v\n", item.displayString)
|
||||||
result += statusMsg(fmt.Sprintf("Launching command: %v\n", item.displayString))
|
result += statusMsg(fmt.Sprintf("Launching command: %v\n", item.displayString))
|
||||||
err := item.command.Start()
|
err := item.command.Start()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue