forked from sim0n00ps/OF-DL
Added logging of which NonInteractive mode it's running
This commit is contained in:
parent
946f6f3ae4
commit
d0bbf051e3
@ -506,6 +506,8 @@ public class Program
|
||||
|
||||
config.NonInteractiveMode = true;
|
||||
|
||||
Log.Logger = Log.Logger.ForContext("Mode", "NonInteractiveMode");
|
||||
|
||||
int indexOfSpecificListsArg = Array.FindIndex(args, a => a.Contains(SPECIFIC_LISTS_ARG, StringComparison.OrdinalIgnoreCase));
|
||||
int indexOfSpecificUsersArg = Array.FindIndex(args, a => a.Contains(SPECIFIC_USERS_ARG, StringComparison.OrdinalIgnoreCase));
|
||||
char[] separator = [','];
|
||||
@ -519,6 +521,8 @@ public class Program
|
||||
{
|
||||
config.NonInteractiveSpecificLists = strListValues;
|
||||
config.NonInteractiveModeListName = string.Empty;
|
||||
|
||||
Log.Logger = Log.Logger.ForContext("NonInteractiveSpecificLists", string.Join(",", strListValues));
|
||||
}
|
||||
}
|
||||
|
||||
@ -529,6 +533,8 @@ public class Program
|
||||
if (strUserValues.Length > 0)
|
||||
{
|
||||
config.NonInteractiveSpecificUsers = strUserValues;
|
||||
|
||||
Log.Logger = Log.Logger.ForContext("NonInteractiveSpecificUsers", string.Join(",", strUserValues));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -539,6 +545,8 @@ public class Program
|
||||
{
|
||||
config.NonInteractiveMode = true;
|
||||
config.OutputBlockedUsers = true;
|
||||
|
||||
Log.Logger = Log.Logger.ForContext("Mode", "OutputBlockedUsers");
|
||||
}
|
||||
|
||||
const string UPDATE_ALL_USER_INFO_ARG = "--update-userinfo";
|
||||
@ -547,6 +555,8 @@ public class Program
|
||||
{
|
||||
config.NonInteractiveMode = true;
|
||||
config.UpdateAllUserInfo = true;
|
||||
|
||||
Log.Logger = Log.Logger.ForContext("Mode", "UpdateAllUserInfo");
|
||||
}
|
||||
|
||||
Log.Debug("Additional arguments:");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user