What class is this you are showing? Only showing a print statement is meaningless, unless you give it a context
If this the game mode class for example, you’d see only one print from the server, since the GM instance only exists on the server.
Edit:
On the other hand, a player controller exists on the owning client as well as on the server and therefore, the print statement should be executed from server and client.