mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-07-04 21:37:47 +02:00
fix: modified log level when browser not found, Close #71
This commit is contained in:
+6
-6
@@ -145,7 +145,7 @@ func (c *Chromium) GetAllItems() ([]data.Item, error) {
|
|||||||
for item, choice := range chromiumItems {
|
for item, choice := range chromiumItems {
|
||||||
m, err := getItemPath(c.profilePath, choice.mainFile)
|
m, err := getItemPath(c.profilePath, choice.mainFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%s find %s file failed, ERR:%s", c.name, item, err)
|
log.Debugf("%s find %s file failed, ERR:%s", c.name, item, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
i := choice.newItem(m, "")
|
i := choice.newItem(m, "")
|
||||||
@@ -161,7 +161,7 @@ func (c *Chromium) GetItem(itemName string) (data.Item, error) {
|
|||||||
if item, ok := chromiumItems[itemName]; ok {
|
if item, ok := chromiumItems[itemName]; ok {
|
||||||
m, err := getItemPath(c.profilePath, item.mainFile)
|
m, err := getItemPath(c.profilePath, item.mainFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%s find %s file failed, ERR:%s", c.name, item.mainFile, err)
|
log.Debugf("%s find %s file failed, ERR:%s", c.name, item.mainFile, err)
|
||||||
}
|
}
|
||||||
i := item.newItem(m, "")
|
i := item.newItem(m, "")
|
||||||
return i, nil
|
return i, nil
|
||||||
@@ -192,13 +192,13 @@ func (f *Firefox) GetAllItems() ([]data.Item, error) {
|
|||||||
if choice.subFile != "" {
|
if choice.subFile != "" {
|
||||||
sub, err = getItemPath(f.profilePath, choice.subFile)
|
sub, err = getItemPath(f.profilePath, choice.subFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%s find %s file failed, ERR:%s", f.name, item, err)
|
log.Debugf("%s find %s file failed, ERR:%s", f.name, item, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
main, err = getItemPath(f.profilePath, choice.mainFile)
|
main, err = getItemPath(f.profilePath, choice.mainFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%s find %s file failed, ERR:%s", f.name, item, err)
|
log.Debugf("%s find %s file failed, ERR:%s", f.name, item, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
i := choice.newItem(main, sub)
|
i := choice.newItem(main, sub)
|
||||||
@@ -218,12 +218,12 @@ func (f *Firefox) GetItem(itemName string) (data.Item, error) {
|
|||||||
if item.subFile != "" {
|
if item.subFile != "" {
|
||||||
sub, err = getItemPath(f.profilePath, item.subFile)
|
sub, err = getItemPath(f.profilePath, item.subFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%s find %s file failed, ERR:%s", f.name, item.subFile, err)
|
log.Debugf("%s find %s file failed, ERR:%s", f.name, item.subFile, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
main, err = getItemPath(f.profilePath, item.mainFile)
|
main, err = getItemPath(f.profilePath, item.mainFile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("%s find %s file failed, ERR:%s", f.name, item.mainFile, err)
|
log.Debugf("%s find %s file failed, ERR:%s", f.name, item.mainFile, err)
|
||||||
}
|
}
|
||||||
i := item.newItem(main, sub)
|
i := item.newItem(main, sub)
|
||||||
log.Debugf("%s find %s file success", f.name, item.mainFile)
|
log.Debugf("%s find %s file success", f.name, item.mainFile)
|
||||||
|
|||||||
Reference in New Issue
Block a user