Skip to content

Commit

Permalink
fix: build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
electricface committed Jul 23, 2019
1 parent 59d2330 commit d571b05
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dock/dock_manager_dock_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func removeScratchFiles(desktopFile string) {
logger.Debugf("remove scratch file %q", file)
err := os.Remove(file)
if err != nil {
logger.Warning("remove scratch file %q failed:", file, err)
logger.Warningf("failed to remove scratch file %q: %v", file, err)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion keybinding/shortcuts/kwin_shortcut.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (ks *kWinShortcut) ReloadKeystrokes() bool {
oldVal := ks.GetKeystrokes()
keystrokes, err := ks.wm.GetAccel(0, ks.Id)
if err != nil {
logger.Warning("failed to get accel for %s: %v", ks.Id, err)
logger.Warningf("failed to get accel for %s: %v", ks.Id, err)
return false
}
newVal := ParseKeystrokes(keystrokes)
Expand Down
2 changes: 1 addition & 1 deletion lastore/check_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (l *Lastore) createSourceModifiedActions() []NotifyAction {
logger.Info("restore source")
err := l.core.RestoreSystemSource(0)
if err != nil {
logger.Warningf("failed to restore source:", err)
logger.Warning("failed to restore source:", err)
return
}

Expand Down
2 changes: 1 addition & 1 deletion lastore/notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (l *Lastore) sendNotify(icon string, msg string, actions []NotifyAction) {
return
}
}
logger.Warning("not found action id %q in %v", actionId, actions)
logger.Warningf("not found action id %q in %v", actionId, actions)
})
if err != nil {
logger.Warning(err)
Expand Down
2 changes: 1 addition & 1 deletion launcher/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ func (m *Manager) loadPkgCategoryMap() error {
for pkg, v := range jsonData {
cid, ok := parseCategoryString(v.Category)
if !ok {
logger.Warning("loadPkgCategoryMap: parse category %q failed", v.Category)
logger.Warningf("loadPkgCategoryMap: failed to parse category %s", v.Category)
}
infos[pkg] = cid
}
Expand Down

0 comments on commit d571b05

Please sign in to comment.